XUpload - Load not obligatory

Message
Author
Ugly Mau
Posts: 12
Joined: Aug 30, 2007 9:15 am

Load not obligatory

#1 Postby Ugly Mau » Aug 30, 2007 9:25 am

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

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

#2 Postby PilgrimX182 » Aug 30, 2007 9:54 am

Sure. Just comment this line in xupload.js:

Code: Select all

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

Ugly Mau
Posts: 12
Joined: Aug 30, 2007 9:15 am

#3 Postby Ugly Mau » Aug 30, 2007 12:24 pm

Works perfectly

Thanks

saadava
Posts: 6
Joined: May 10, 2008 1:24 pm

#4 Postby saadava » May 10, 2008 1:37 pm

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

saadava
Posts: 6
Joined: May 10, 2008 1:24 pm

#5 Postby saadava » May 10, 2008 6:32 pm

Hi,

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

Tested and works ok.

Thanks,
Si