This is a migrated thread and some comments may be shown as answers.

RadAsyncUpload - Send Files On Specified Button

7 Answers 411 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Elvis
Top achievements
Rank 2
Elvis asked on 18 Mar 2010, 04:10 PM
I have an aspx page with many controls that cause a post back, which in turn uploads any files listed in the Upload Aysnc Control. Is there a way to specify which button to control the async upload that will send the file?

Thank you.

7 Answers, 1 is accepted

Sort by
0
Elvis
Top achievements
Rank 2
answered on 18 Mar 2010, 05:06 PM
I placed a support ticket and got a quick response. I hope this helps others.

RadAsyncUpload does not upload files with postback, don't you talk about the regular RadUpload? If so, you can take a look at the following help article for more information on how clear the inputs if the user has pressed button other than the submit one.

Please, have in mind that the upload  inputs are going to cleared from the selected files, i.e after a postback they won't contain any selected files.

How to hold view state of selected files?

This is not possible due to a security reasons. The problem is that the browsers do not allow you to set the value of the uploads using JavaScript. Otherwise a hacker would be able to use malicious script in order to upload random files from users computers. One must manually select a file in order to make it appear in the input field. Currently there is no way to workaround this issue. This is the way all modern browers work.

The good news are that we are working on a new version of the RadAsyncUpload control that will support this (upload with specific button only) and many more other useful features (It is going to use Flash/Silverlight). The control is scheduled for Q2 2010.
0
zozzancs
Top achievements
Rank 1
answered on 09 Apr 2010, 02:50 PM
Hello,

Does this mean that in Q2 2010 there will be an uploader like in this demo?
http://demos.telerik.com/aspnet-ajax/upload/examples/silverlight/defaultcs.aspx

My goal is to upload multiple files with "one click".
I mean, I would like to select multiple files "at one browse", just like in the demo app above. I don't want to browse them one-by-one.
I know this is only possible with silverlight or flash - or maybe java applet.

Will this Q2 release contain such finctionality?

Thank You!
0
T. Tsonev
Telerik team
answered on 09 Apr 2010, 03:19 PM
Hi Zoltán,

Yes, we're working on multiple file selection support for the Q2 release. We'll be using a hybrid approach with Flash/Silverlight modules, falling back to the current behavior if the plug-ins are not available.

Regards,
Tsvetomir Tsonev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
zozzancs
Top achievements
Rank 1
answered on 09 Apr 2010, 04:50 PM
Great news, thank you!
0
rei
Top achievements
Rank 1
answered on 25 Oct 2010, 11:07 PM
Hi,

We are currently using the Q2 2010 release of Telerik. Is the uploading using only a specific button supported already by RadAsyncUpload? If not, is there a way to preserve the viewstate? 



Thanks
0
Genady Sergeev
Telerik team
answered on 28 Oct 2010, 12:33 PM
Hello rei,

This behavior is not supported out of the box. However, I believe a workaround can be used. Please find a project demonstrating a possible approach as an attachment.

Sincerely yours,
Genady Sergeev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
rei
Top achievements
Rank 1
answered on 28 Oct 2010, 10:49 PM
Thanks a lot!
Tags
AsyncUpload
Asked by
Elvis
Top achievements
Rank 2
Answers by
Elvis
Top achievements
Rank 2
zozzancs
Top achievements
Rank 1
T. Tsonev
Telerik team
rei
Top achievements
Rank 1
Genady Sergeev
Telerik team
Share this question
or