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

Link to comment
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.

Link to comment
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.