7 Answers, 1 is accepted
0

Anuj
Top achievements
Rank 1
answered on 31 Mar 2015, 08:57 AM
Any solution??
How can i bind saved images back to the async file uploader
How can i bind saved images back to the async file uploader
0
Hello,
If you what you are trying to achieve is to automatically select and upload files, the browser wouldn't allow it due to security reasons.
Regards,
Ivan Danchev
Telerik
If you what you are trying to achieve is to automatically select and upload files, the browser wouldn't allow it due to security reasons.
Regards,
Ivan Danchev
Telerik
See What's Next in App Development. Register for TelerikNEXT.
0

Anuj
Top achievements
Rank 1
answered on 01 Apr 2015, 04:48 AM
Thanks for your response..
But what i am trying is
In my project After save the image are moved from temp to permanent folder and Image name is saved in database table.
now what i am trying to show the saved file name to the user when user open their form in edit mode (i.e image which he saved in Add mode show to him when he open it in edit mode).
Please Help me....
But what i am trying is
In my project After save the image are moved from temp to permanent folder and Image name is saved in database table.
now what i am trying to show the saved file name to the user when user open their form in edit mode (i.e image which he saved in Add mode show to him when he open it in edit mode).
Please Help me....
0

Anuj
Top achievements
Rank 1
answered on 03 Apr 2015, 12:53 PM
Hello,
Dear Telerik Team,
Please provide any solution about my query..
And if it possible please give a sample with solution.
Thank you.....
0
Hello,
You get the uploaded file name in the FileUploaded event handler:
Regards,
Ivan Danchev
Telerik
You get the uploaded file name in the FileUploaded event handler:
protected
void
RadAsyncUpload1_FileUploaded(
object
sender, FileUploadedEventArgs e)
{
string
targetFolder = ((RadAsyncUpload)sender).TargetFolder;
string
uploadedFile = Server.MapPath(targetFolder +
"/"
+ e.File.FileName);
}
Regards,
Ivan Danchev
Telerik
0

Anuj
Top achievements
Rank 1
answered on 04 Apr 2015, 04:58 AM
Dear Sir,
Thank you for your response. But what i am trying is,
when user click on save button then all record are saved into the database along with uploaded files names and uploaded files are moved from temp folder to permanent folder. Now after save records when user click on Edit button to edit their record then files uploaded by user along with his information user bind to async file uploader. If possible please attached sample example with your valued reply.
Thanks..
0
Hello,
If I understand you correctly, you are asking if the RadAsyncUpload can be bound to a database and get the names of the uploaded files that are stored there. If that is the case, I am afraid what you are trying to achieve is not possible. The RadAsyncUpload cannot be bound to a data source, because unlike the controls that support data binding, its purpose is not to display data. In addition, automatically selecting and uploading files is not allowed due to security reasons.
Regards,
Ivan Danchev
Telerik
If I understand you correctly, you are asking if the RadAsyncUpload can be bound to a database and get the names of the uploaded files that are stored there. If that is the case, I am afraid what you are trying to achieve is not possible. The RadAsyncUpload cannot be bound to a data source, because unlike the controls that support data binding, its purpose is not to display data. In addition, automatically selecting and uploading files is not allowed due to security reasons.
Regards,
Ivan Danchev
Telerik
See What's Next in App Development. Register for TelerikNEXT.