Jump to content

Recommended Posts

When using a form for a file upload I am using enctype="multipart/form-data". When I do this can I still include a few normal text fields in the form, or will that cause problems.

The second question I have is that I know this is a MIME type upload, but I while reading another post awhile back I heard someone make mention of another type of file upload that doesn't use MIME types. What is this other type and how do I use it?

Thanks,
Patrick
Link to comment
https://forums.phpfreaks.com/topic/29334-file-upload-question/
Share on other sites

as for your first question, the method still stands, be it get or post. your $_GET/$_POST arrays will be set as normal, just with the addition of the $_FILES array too.

as for your second question, i honestly dont have a clue. as far as i know, all files have a mime type when uploading via a form.
Link to comment
https://forums.phpfreaks.com/topic/29334-file-upload-question/#findComment-134608
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.