Rank: Member Groups: Member
Joined: 8/11/2009 Posts: 14
|
I'm using the Upload control to attach files to be saved with a corresponding parent record (the parent record holds information about the file, like a description, author, etc.). For uploading and saving the files, this works fine. But, after the record and file is saved, at some later time, I need to go back and view the record and the file and, perhaps, remove the file and attach a different file. Can I load the Upload control and programmatically put my saved file into its' PostedFiles collection? I would also want to gray out the Upload button and make the Delete button/checkbox available to delete the file. Not sure if I explained myself well, but is this possible?
|
Rank: Member Groups: Member
Joined: 8/11/2009 Posts: 14
|
BTW, an alternative to this would be, upon pulling up the record, to automatically re-upload the already saved file. This would give the user the impression that this file was already attached to the record. Is it possible to kick off the upload programmatically?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
No. You can not reload the uploaded file list to the uploader. You should use a separate list (for example, a DataGrid) to manage your files.
Thanks!
|