RadAsyncUpload - Send Files On Specified Button

8 posts, 0 answers
  1. Elvis
    Elvis avatar
    11 posts
    Member since:
    Jul 2008

    Posted 18 Mar 2010 Link to this post

    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.
  2. Elvis
    Elvis avatar
    11 posts
    Member since:
    Jul 2008

    Posted 18 Mar 2010 Link to this post

    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.
  3. zozzancs
    zozzancs avatar
    24 posts
    Member since:
    Dec 2009

    Posted 09 Apr 2010 Link to this post

    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!
  4. T. Tsonev
    Admin
    T. Tsonev avatar
    2831 posts

    Posted 09 Apr 2010 Link to this post

    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.
  5. zozzancs
    zozzancs avatar
    24 posts
    Member since:
    Dec 2009

    Posted 09 Apr 2010 Link to this post

    Great news, thank you!
  6. rei
    rei avatar
    12 posts
    Member since:
    Jul 2009

    Posted 25 Oct 2010 Link to this post

    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
  7. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1600 posts

    Posted 28 Oct 2010 Link to this post

    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
  8. rei
    rei avatar
    12 posts
    Member since:
    Jul 2009

    Posted 28 Oct 2010 Link to this post

    Thanks a lot!
Back to Top