Find Jobs
Hire Freelancers

Simple bug fix in spring file upload.

$10-30 USD

Fechado
Publicado há quase 6 anos

$10-30 USD

Pago na entrega
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 do Projeto: 17222601

Sobre o projeto

20 propostas
Projeto remoto
Ativo há 6 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
20 freelancers estão ofertando em média $20 USD for esse trabalho
Avatar do Usuário
HI, I AM INTERESTED IN THE PROJECT. I HAVE DONE SIMILAR KIND OF FILE UPLOAD USING SPRING
$10 USD em 1 dia
5,0 (1 avaliação)
2,4
2,4
Avatar do Usuário
- 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 em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
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 em 2 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Over 10 years of professional experience in every facet of enterprise application development including designing, development and deployments.
$23 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Ready work right away...
$10 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
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 em 2 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
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 em 3 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
currently working for a banking project in spring, so solving this issue could be done by me without any difficulties
$10 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
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 em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
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 em 1 dia
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) CHINA
Yanji City, China
5,0
16
Membro desde nov. 26, 2014

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.