• Post Reply Bookmark Topic Watch Topic
  • New Topic

question about ENCTYPE="multipart/form-data" page

 
alsoumahi alBatal
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi experts , I have a form page containing (ENCTYPE="multipart/form-data" ) to upload files . But the problem is when I
read field attribute using request.getParameter("Name"); it returns null , and i am sure about the name of field attribute , so in order to avoid this null I have to erase
(ENCTYPE="multipart/form-data) from my page . I don't want to erase it , because I am uploading files from the page , what is the solution , how can I upload files and get values
of fields in same page

thanks in advance
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to use a multipart request library, like Apache's commons-fileupload or similar. Please see the file upload FAQ entry.
 
alsoumahi alBatal
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:You need to use a multipart request library, like Apache's commons-fileupload or similar. Please see the file upload FAQ entry.


thanks a lot but is there any like to see examples how to use this class "multipart request" , because I am new to this class , I have tried but I got errors
thanks a lot
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...

The documentation?

http://commons.apache.org/fileupload/using.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!