PDA

View Full Version : Error on File Upload



mayur_satasiya
14 Jun 2012, 9:45 PM
HI, while uploading (sending request for file upload) i got bellow error in network panel and getting error on preview is :
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is org.apache.commons.fileupload.FileUploadException: the request was rejected because no multipart boundary was found
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:681) org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:585) javax.servlet.http.HttpServlet.service(HttpServlet.java:641) javax.servlet.http.HttpServlet.service(HttpServlet.java:722)


36269

36270


36271

scottmartin
15 Jun 2012, 5:29 PM
Without any code, it would be difficult to provide a solution. Perhaps this will help:
http://loianegroner.com/2011/07/extjs-4-file-upload-spring-mvc-3-example/

Regards,
Scott.

mayur_satasiya
15 Jun 2012, 8:36 PM
Thanks for your replay
i have already seen that post but i need Multiple file upload.and i am using http://debug.cz/demo/upload/docs/#!/api/Ext.ux.upload.Dialog this widget and i can't find the name of that file means name: 'file', or how can i find the file path from http request and content-type : 'multipart/form-data', please help me

thanks in advance

scottmartin
15 Jun 2012, 8:44 PM
What version of ExtJS are you using?

I am not familiar with Spring so you may have to find someone with experience in that arena.

Scott.

mayur_satasiya
15 Jun 2012, 8:50 PM
i am using ExtsJS 4, while i am using multipart/form-data as content type then but at that time i can't find the filemap from multipart http request...
but can u tell me which name is used for the file in above given link widget..?
means how can i receive file parameter from extjs
For Example
{
xtype:'textfield',
name :'username',
id :'uid'
}
what will be the name for file in given link widget please help me,

thanks in adcance