Jump to content

validating upload file (form validation)


nikefido

Recommended Posts

I have an upload section in my form.

 

I want the option to upload a file to NOT be required input.

 

I tried testing to see if the

$_FILES['uploaded']

was set using "isset" but that seems to be set every time no matter what.

 

How can I test if there was no file uploaded? (the user didn't hit browse & there's no input in the text field)?

Link to comment
https://forums.phpfreaks.com/topic/91932-validating-upload-file-form-validation/
Share on other sites

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.