Optional Upload?

by Diego Vargas (May 4, 2001)

Question:


What can i do if the file that the users can upload is optional ?
The behavior convert required the field in my form, i need it optional !

User Rating (4 votes)
3 reviews available | Read all reviews »

Answer:


Try deleting the form onSubmit action. This will disable the empty filename check - but it will also disable the Allowed Extensions check.

In the next version of Pure Upload this will be an option.

User Reviews

Total of 3 reviews
RE: Optional Upload Fix
Written by Phil Thurston on March 27, 2002

Hi, I may be just plain stupid but I do not understand your fix for the optional upload? Please can you explain exactly what I have to do? Many Thanks Phil

RE: Optional Upload Fix
Written by George Petrov on June 9, 2001

Very good Sam - this does the job even better!

Optional Upload Fix
Written by sam sam on June 9, 2001

Commenting out the following foure lines (marked in red) in the check extensions script worked for me, as follows comments? ------------------------function checkFileUpload(form,extensions) { //v1.0 document.MM_returnValue = true; if (extensions ...

Follow us on Facebook Follow us on twitter Subscribe to the RSS feed
Activate your free membership today | Login | Currency