I didn't have the "name" field, but an "id" field instead. I hope that you, or someone else, can help me ! List multiparts = new ServletFileUpload( new DiskFileItemFactory()).parseRequest(request) I've found out that the issue is with the line : I'm getting the message "File Uploaded Successfully" but there's no file where it should. Your example seemed very good so I copied it aaaaaand it doesn't work :( I'm trying to get this upload thing to work for 3 hours now, i'm getting crazy ! New DiskFileItemFactory()).parseRequest((RequestContext) request) Mais il affiche une erreur et m'a obliger a corriger l'erreur comme ca : New DiskFileItemFactory()).parseRequest(request) MultipartRequest m = new MultipartRequest(request,"e:/syed",10590378) įile Upload Failed due to . cannot be cast to. it makes the war file toooo heavy to deployīefore coding download the package : cos.jar its functioning well but there is a problem in that images also gets saved in classes folder with other class files. Upon execution of the above code i am encountering a 404 error after clicking on upload. Can I upload an image by using this way? Thanks!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |