Jump to content

checking file submit box


pouncer

Recommended Posts

<input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
<input name="imageupload" type="file" size="70">

 

How do I actually check if the user actualled clicked the browse button and selected a file?

because, before i hit the submit button i want to check if the user actually select a file to upload

Link to comment
https://forums.phpfreaks.com/topic/41527-checking-file-submit-box/
Share on other sites

Do you mean before the form is actually submitted?

 

If you want to do it before the form is submitted then you will more then likely have to use javascript to disable the rest of the form inputs until the above mentioned input has a value.

 

hmmm, yea i wanted to check it before i hit the submit. hmm, sounds a bit complex to me.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.