Optional file upload

XUpload related questions

Moderator: admin

Message
Author
origins
Posts: 2
Joined: Jan 26, 2007 11:14 am

Optional file upload

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

Hi

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
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#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 ;)

origins
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 1 guest