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

Upload image RadUpload control programatically

2 Answers 202 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 13 Feb 2012, 03:31 PM
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.

thanks.

2 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 13 Feb 2012, 05:45 PM
Hi Kevin,

Unfortunately this is not possible due to safety issues. A file can be uploaded only by user action, and not by code.
 
Regards,
Bozhidar
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Rahul Gupta
Top achievements
Rank 1
answered on 08 Nov 2012, 03:02 AM
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.

Tags
Upload (Obsolete)
Asked by
Kevin
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Rahul Gupta
Top achievements
Rank 1
Share this question
or