|
|
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
|
|
|
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
|
|
|
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
|
|
|
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
|
|
|
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.
|
|
|
|
Guest |