Find Jobs
Hire Freelancers

Simple bug fix in spring file upload.

$10-30 USD

Chiuso
Pubblicato quasi 6 anni fa

$10-30 USD

Pagato al completamento
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.
Rif. progetto: 17222601

Info sul progetto

20 proposte
Progetto a distanza
Attivo 6 anni fa

Hai voglia di guadagnare un po'?

I vantaggi delle offerte su Freelancer

Imposta il tuo budget e le scadenze
Fatti pagare per il lavoro svolto
Delinea la tua proposta
La registrazione e le offerte sui lavori sono gratuite
20 freelance hanno fatto un'offerta media di $20 USD
Avatar dell'utente
HI, I AM INTERESTED IN THE PROJECT. I HAVE DONE SIMILAR KIND OF FILE UPLOAD USING SPRING
$10 USD in 1 giorno
5,0 (1 valutazione)
2,4
2,4
Avatar dell'utente
- 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 in 1 giorno
0,0 (0 valutazioni)
0,0
0,0
Avatar dell'utente
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 in 2 giorni
0,0 (0 valutazioni)
0,0
0,0
Avatar dell'utente
Over 10 years of professional experience in every facet of enterprise application development including designing, development and deployments.
$23 USD in 1 giorno
0,0 (0 valutazioni)
0,0
0,0
Avatar dell'utente
Ready work right away...
$10 USD in 1 giorno
0,0 (0 valutazioni)
0,0
0,0
Avatar dell'utente
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 in 2 giorni
0,0 (0 valutazioni)
0,0
0,0
Avatar dell'utente
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 in 3 giorni
0,0 (0 valutazioni)
0,0
0,0
Avatar dell'utente
currently working for a banking project in spring, so solving this issue could be done by me without any difficulties
$10 USD in 1 giorno
0,0 (0 valutazioni)
0,0
0,0
Avatar dell'utente
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 in 1 giorno
0,0 (0 valutazioni)
0,0
0,0
Avatar dell'utente
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 in 1 giorno
0,0 (0 valutazioni)
0,0
0,0

Info sul cliente

Bandiera: CHINA
Yanji City, China
5,0
16
Membro dal nov 26, 2014

Verifica del cliente

Grazie! Ti abbiamo inviato tramite email il link per richiedere il tuo bonus gratuito.
Non è stato possibile inviarti l'email. Riprova per piacere.
di utenti registrati di lavori pubblicati
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Caricamento anteprima
Autorizzazione per la geolocalizzazione concessa.
La tua sessione è scaduta ed è stato effettuato il log out. Accedi nuovamente per piacere.