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

Using RadUpload to display uploaded files

1 Answer 103 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Jon Reynolds
Top achievements
Rank 1
Jon Reynolds asked on 09 Mar 2012, 01:14 PM
I'm trying to figure out if there is a way to repopulate the RadUpload control with files that were previously uploaded.  I have a message board where users can type a message and also attach files (using the Upload control) to the message.  Currently when a user uploads a file, the file is saved to a file share on the web server and I then save the path and file(s) name along with the message to a database.

What I would like to do is when the user try's to edit the post, I can pull back the message and files that were uploaded.  I would like to have the Edit form look just like the post form instead of having the user delete the files some other way (which is possible and probably easier) and populate the control with the names of the existing files.  I realize that this is not the purpose of this control but is there a way that I can do this?  And an extra option would be if then if they choose to delete a file i could capture that and remove the file? 

1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 14 Mar 2012, 09:12 AM
Hello Jon,

This is not possible due to security reasons. It would have been huge vulnerability issue if it was possible to programmatically select files on the client machine and then upload them.
 
All the best,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Upload (Obsolete)
Asked by
Jon Reynolds
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or