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

Two Slick Upload in one page Options
sri_kumar_4u
#1 Posted : Friday, July 16, 2010 1:55:49 AM
Rank: Newbie

Groups: Registered

Joined: 6/15/2010
Posts: 2
Location: India

Hello All,

Is it possible to have two slick upload buttons in same page. I have a requirement where two different files has to be uploaded. I know that in single slick upload i can upload multiple files but the problem here is I cannot use the same slick upload to upload both files

I should have separate upload element for these. I tried to add another slick upload but i throws error "Multiple UploadProgressDisplay instances detected. There can only be one instance per page"

Is it possible to achieve this?

Thanks

Sri

gurpreetsin
#2 Posted : Friday, January 27, 2012 4:07:35 AM
Rank: Newbie

Groups: Registered

Joined: 1/27/2012
Posts: 2
Hi there,

I also have the same requirement and its not working for me either. Administrators, Please respond if this is possible or not. or is there any other work around.

Thanks

Gurpreet
Axosoft
#3 Posted : Friday, January 27, 2012 11:23:41 AM
Rank: Administration


Groups: Administrators

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

Have you taken a look at the Multiple example? You can't have two SlickUpload controls on one page uploading simultaneously, but you can have two independent file selection areas. That example demonstrates how to set it up 

gurpreetsin
#4 Posted : Tuesday, January 31, 2012 9:19:17 AM
Rank: Newbie

Groups: Registered

Joined: 1/27/2012
Posts: 2

Hi,

Thanks for your reply!

I have taken a look at that and I have been able to show 2 different upload file selectors.
But I have 2 different buttons for upload. Now when I execute these upload buttons, they both execute same event "uploadComponent_UploadComplete" linked with connector on the page. So Now my problem is how to detect which upload button was clicked first one or second one.

Any idea how this can be resolved?

 

Thanks and Regards

Gurpreet Singh

Axosoft
#5 Posted : Tuesday, January 31, 2012 10:19:39 AM
Rank: Administration


Groups: Administrators

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

There are two ways to detect that.

#1 - The button click event should also be fired in addition to the UploadComplete event. You could handle that even instead of UploadComplete, and check uploadComponent.UploadSession to get the current upload session.

#2 - Each file has the name of the source FileSelector in the file.FileSelectorId property. You could have one UploadComplete event, but have code that does different things based on which FileSelector is the source.

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.