SlickUpload
Welcome Guest Search | Active Topics | Log In | Register

Upload only one single file at the same time Options
Sergey
#1 Posted : Thursday, January 05, 2012 8:01:56 AM
Rank: Newbie

Groups: Registered

Joined: 1/5/2012
Posts: 5
Location: Ukraine

Hello,

In my case I need to let the user select only one file to upload at the same a time. But by default user can select more than one file (~100 files) at the same time.

I have worked around MaxFiles=1 attribute for SlickUpload class and also for FileSelector class but it doesn’t help. I tested on SlickUpload version 6.1.6, MVC 3 Web Forms and simple WebForms topology, used 3.5 and 4.0 .Net Framework, cheked in Chrome (16.0.912.63), FireFox (8.0.1) web browsers.

Could you please help to solve the problems?

 

 

 

Axosoft
#2 Posted : Thursday, January 05, 2012 9:22:38 AM
Rank: Administration


Groups: Administrators

Joined: 7/7/2005
Posts: 1,586
Location: Scottsdale, AZ

The MaxFiles attribute sets the number of files that will end up being selected, but the user can select more in the selection box. If the user selects more files than set in MaxFiles, only the files less than MaxFiles will be selected and shown in the selected file list.

There isn't a way to specify the number of files that may be selected in a file selection dialog. The only setting is to allow single or multiple.

Now, for MaxFiles=1, that is a special case as we can turn multiple selection off. I've sent you a build that turns multiple selection off if MaxFiles=1. That should solve the issue you're seeing. This functionality will also be included in our next public version.

 

Sergey
#3 Posted : Thursday, January 05, 2012 1:28:06 PM
Rank: Newbie

Groups: Registered

Joined: 1/5/2012
Posts: 5
Location: Ukraine
Thanks!
Now works!
That's great!
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.