Upload image RadUpload control programatically

Thread is closed for posting
3 posts, 0 answers
  1. Kevin
    Kevin  avatar
    8 posts
    Member since:
    Nov 2010

    Posted 13 Feb 2012 Link to this post

    Is there a way to upload an image into a RadUpload control programatically?

    I am prefilling user data on a form, one of the fields is an RadUpload image control, and I would like to pre-populate this field with an image.

  2. Bozhidar
    Bozhidar avatar
    1096 posts

    Posted 13 Feb 2012 Link to this post

    Hi Kevin,

    Unfortunately this is not possible due to safety issues. A file can be uploaded only by user action, and not by code.
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft R3 2016 release webinar banner
  4. Rahul Gupta
    Rahul Gupta avatar
    3 posts
    Member since:
    Mar 2008

    Posted 07 Nov 2012 Link to this post

    I don't understand what safety issue is there to show there is a file already attached from server.

    Consider a scenario similar to email draft. You attach a file and save as draft. Next time when you open, you want to see files attached and you should be able to remove or add more files.

Back to Top