XUpload - Optional file upload

Posts: 2
Joined: Jan 26, 2007 11:14 am

Optional file upload

#1 Postby origins » Feb 01, 2007 1:09 pm


Just wondering if anyone has implemented an optional file upload feature rather than the current mandatory requirement. I'm integrating xupload (pro) into an update routine where the user may not necessarily want to upload a new file to the record. (There are other fields on the form).

It would great if Required could be enabled/disabled in a hidden field config or something - Feature request!

Many thanks

User avatar
Posts: 2182
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Feb 01, 2007 1:41 pm

No problems! Just comment one line in xupload.js:

Code: Select all

if(NF==0){alert('Select at least one file to upload');return false;};

I think it's too rare situation for feature, but OK for quick hack ;)

Posts: 2
Joined: Jan 26, 2007 11:14 am

#3 Postby origins » Feb 01, 2007 2:01 pm

Thanks for the swift reply!

Return to “XUpload”

Who is online

Users browsing this forum: No registered users and 0 guests