Forum Moderators: open

Message Too Old, No Replies

upload file plus other form data

         

jackvull

10:20 am on Jan 17, 2006 (gmt 0)

10+ Year Member



Hi
If I am uploading a file then I use the following in the form enctype:
ENCTYPE="multipart/form-data"

Is this also suitable for sending other form data? For example, a user enters the path of the file to upload and in a separate input box they enter a name and/or description of the file?

rocknbil

8:07 pm on Jan 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Depending on what you're using to decode the data, absolutely. That's the whole point of multipart/form-data. You can even have multiple upload fields on the same form as long as they are uniquely named.