SibSoft Ltd.
Development Services
software products
 RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
EZYWebhost - Cheap XUpload & XFileSharing 100% campatible hosting

AJAX upload progress bar

File sharing script
Load not obligatory

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



Joined: 30 Aug 2007
Posts: 7

PostPosted: Aug 30, 2007 9:25 am    Post subject: Load not obligatory Reply with quote

Hello

I use the "Pro2.5"

I have the field of upload within a form, is possiblie leave the field of upload not obligatory?

Why to every submit of the form it wonders a file to load...

Thanks
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 1107
Location: Undisclosed location

PostPosted: Aug 30, 2007 9:54 am    Post subject: Reply with quote

Sure. Just comment this line in xupload.js:

Code:
if(NF==0){alert('Select at least one file to upload');return false;};
Back to top
View user's profile Send private message Visit poster's website AIM Address
Ugly Mau



Joined: 30 Aug 2007
Posts: 7

PostPosted: Aug 30, 2007 12:24 pm    Post subject: Reply with quote

Works perfectly

Thanks
Back to top
View user's profile Send private message
saadava



Joined: 10 May 2008
Posts: 6

PostPosted: May 10, 2008 1:37 pm    Post subject: Reply with quote

Hi,

This didn't work for me.

After commenting out the line from xupload.js it gets further but fails when a dialogue box pops up saying:

ERROR: No files uploaded

I'm using Xupload Pro 3.0 Jan 2008.

Would help with this - uploading files is optional in my application.
Si
Back to top
View user's profile Send private message
saadava



Joined: 10 May 2008
Posts: 6

PostPosted: May 10, 2008 6:32 pm    Post subject: Reply with quote

Hi,

OK - I've figured out how to do this now from this other thread:
http://sibsoft.net/forum/making-file-upload-optional-t528.html

Tested and works ok.

Thanks,
Si
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