Find Jobs
Hire Freelancers

Simple bug fix in spring file upload.

$10-30 USD

已关闭
已发布将近 6 年前

$10-30 USD

货到付款
Required MultipartFile parameter 'file' is not present in spring 4.3.1 I am using spring 4.3.1 and I am going to upload file using ng-file-upload library. this is my javascript code and when I connect the javascript code to php server, it works well. var promise = [login to view URL]({ url: url + "upload", method: 'POST', file: file, ignoreLoadingBar: true }).success(function(response) { [login to view URL] = [login to view URL]; [login to view URL] = [login to view URL]; }).error(function(response) { $rootScope.$broadcast('veil:hide', {}); }); And I appended [login to view URL] and [login to view URL] in /web-inf/lib folder. e And I added multipartResolver in [login to view URL] file. <bean id="multipartResolver" class="[login to view URL]"> <property name="maxUploadSize" value="1000000000" /> </bean> And this is my controller class. @ResponseBody @RequestMapping(value = "/upload", method = [login to view URL]) public void upload(@RequestParam("file") MultipartFile file) throws Exception { if (file == null || [login to view URL]()) { throw new Exception("No file was sent."); } } But when I upload a file, I get such error. Required MultipartFile parameter 'file' is not present How can I fix this? Please help me. thank you for viewing.
项目 ID: 17222601

关于此项目

20提案
远程项目
活跃6 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
20威客以平均价$20 USD来参与此工作竞价
用户头像
HI, I AM INTERESTED IN THE PROJECT. I HAVE DONE SIMILAR KIND OF FILE UPLOAD USING SPRING
$10 USD 在1天之内
5.0 (1条评论)
2.4
2.4
用户头像
- Over 7+ years of experience working on Java/J2EE technologies. - Well versed with Agile/Scrum based development with Test Driven Development approach. - Domain knowledge in payments,Investment Banking(Derivatives), E-Commerce, Insurance - Involved in analysis, design, and development and testing of multi-tier client-server web-based applications. Spring IOC,AOP,MVC,WS,Spring Batch, Hibernate3.X Struts1.3/2.0,XML, HTML5 , Apache Axis 1.4, AJAX, Java Script, JQuery, Maven ,Basics of Gradel , Jenkins and CSS, MyBatis,EJPM2.0,Apache Camel ,Web Services Testing, Test Case Management Tool Selenium, Cucumber J-Unit,Mockito Code Repository /Bug Reporting Tools GIT SVN, StarTeam,BugZilla,HP Quality Center,JIRA Technologies Java 1.x, J2EE Operating Systems Ubuntu, Windows flavors Database Environment MySQL, SQL Server 2005, Oracle 10g, DB2,Postgrey Web Servers Tomcat5.x,6.x,Websphere ,J-boss, Oracle Application Server Tools / IDE's Eclipse, Netbeans, RAD, IReport, Spring STS,Mingle,Jboss Fuse having own andriod app also on google play store called narhe pune.
$25 USD 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
i have work with java, i know about this particular file, i can fix it. i have experience with spring and hibernate. thank you. Relevant Skills and Experience i have worked on many backend project with spring and hibernate, i will fix this bug entirely. you will never regret giving me this work, thank you
$25 USD 在2天之内
0.0 (0条评论)
0.0
0.0
用户头像
Over 10 years of professional experience in every facet of enterprise application development including designing, development and deployments.
$23 USD 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
Ready work right away...
$10 USD 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
I was faced with the same problem in my early projects. So, I know the way to fix this bag. It does not need to much time, that is why the work will be done fast and for good price
$12 USD 在2天之内
0.0 (0条评论)
0.0
0.0
用户头像
Hello, I am Ajaya working as a software developer. I have experience in Java and Spring Framework, thus I would like to apply for this project. Looking forward to working with you soon. Regards, Ajaya
$30 USD 在3天之内
0.0 (0条评论)
0.0
0.0
用户头像
currently working for a banking project in spring, so solving this issue could be done by me without any difficulties
$10 USD 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
Hi, you are missing the name field from your JS, you need to specify the name = file Basically this: (@RequestParam("file") MultipartFile file) is unable to find the field name="file" if you monitor your network traffic you will see the exact HTML message and header. On a simple HTML form you would add <input type="file" class="file" name="file"/> but in JS you need to specify the name, to be honest never done it but its clear that is the bug. Try either: { url: url + "upload", method: 'POST', name: "file", file: file, ignoreLoadingBar: true } OR url: url + "upload&name=file",
$10 USD 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
I can help you. I will not get anything i will return all amount to you. But i need good comment from your side. Regards Ashish Kumar
$25 USD 在1天之内
0.0 (0条评论)
0.0
0.0

关于客户

CHINA的国旗
Yanji City, China
5.0
16
会员自11月 26, 2014起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。