About Question enthuware.jwpv6.2.1110 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
Viorel Ghelbert
Posts: 15
Joined: Fri Apr 10, 2015 12:53 pm
Contact:

About Question enthuware.jwpv6.2.1110 :

Post by Viorel Ghelbert »

Hello,

The HTML form does not actually submit the file, but only sends its name as a regular POST parameter:
POST /myapp/SaveServlet HTTP/1.1
...
Content-Type: application/x-www-form-urlencoded
...
name=UPLOADME.txt
which can be accessed using the first option:

Code: Select all

request.getParameter("name");
(in addition to getInputStream() and getReader()).

This happens because the form does not specify an enctype, and the default is application/x-www-form-urlencoded

To make the form upload the file it should have

Code: Select all

enctype="multipart/form-data"

admin
Site Admin
Posts: 10389
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.1110 :

Post by admin »

Added.
thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest