RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

File mirror script

Newsletter script
Optional file upload

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload
View previous topic :: View next topic  
Author Message
origins



Joined: 26 Jan 2007
Posts: 2

PostPosted: Feb 01, 2007 1:09 pm    Post subject: Optional file upload Reply with quote

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
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 2106
Location: UFO Lab

PostPosted: Feb 01, 2007 1:41 pm    Post subject: Reply with quote

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

Code:
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 Wink
Back to top
View user's profile Send private message Visit poster's website
origins



Joined: 26 Jan 2007
Posts: 2

PostPosted: Feb 01, 2007 2:01 pm    Post subject: Reply with quote

Thanks for the swift reply!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group