bind Image to async file upload

8 posts, 0 answers
  1. Anuj
    Anuj avatar
    8 posts
    Member since:
    Mar 2015

    Posted 30 Mar 2015 Link to this post

    Dear telerik team,

    How can i bind saved image to async file upload .

    thanks
  2. Anuj
    Anuj avatar
    8 posts
    Member since:
    Mar 2015

    Posted 31 Mar 2015 Link to this post

    Any solution??

    How can i bind saved images back to the async  file uploader
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ivan Danchev
    Admin
    Ivan Danchev avatar
    830 posts

    Posted 31 Mar 2015 Link to this post

    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
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  5. Anuj
    Anuj avatar
    8 posts
    Member since:
    Mar 2015

    Posted 31 Mar 2015 Link to this post

    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....







  6. Anuj
    Anuj avatar
    8 posts
    Member since:
    Mar 2015

    Posted 03 Apr 2015 Link to this post

    Hello,

    Dear Telerik Team,

    Please provide any solution about my query..

    And if it possible please give a sample with solution.

    Thank you.....

  7. Ivan Danchev
    Admin
    Ivan Danchev avatar
    830 posts

    Posted 03 Apr 2015 Link to this post

    Hello,

    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
  8. Anuj
    Anuj avatar
    8 posts
    Member since:
    Mar 2015

    Posted 03 Apr 2015 in reply to Ivan Danchev Link to this post

    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..

  9. Ivan Danchev
    Admin
    Ivan Danchev avatar
    830 posts

    Posted 07 Apr 2015 Link to this post

    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
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017