How to display the selected file clientside before upload ?

Thread is closed for posting
5 posts, 1 answers
  1. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 02 Sep 2008 Link to this post

    Hello,

    I would appreciate some help in writing the javascript to use displaying an image selected by browsing before firing the upload to server.
    As new client even have been created, may be someone has already exploited this new feature ?

    Thanks for help.
    CS
  2. Answer
    Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 02 Sep 2008 Link to this post

    Hello Christian Surieux,

    You can check this article, but have in mind that it works only on localhost due to browser security trimmings:
    http://www.telerik.com/help/aspnet-ajax/upload-preview-image-before-upload.html


    Best wishes,
    Veskoni
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 02 Sep 2008 Link to this post

    Perfect, thanks.
    CS
  5. chirag
    chirag avatar
    29 posts
    Member since:
    Jan 2008

    Posted 02 Sep 2008 Link to this post

    This doesn't work for me.
    I am using Firefox 3 and IE8 beta.
  6. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 03 Sep 2008 Link to this post

    Hello chirag,

    The problem with Firefox is that eventArgs.get_fileInputField().value returns only the filename instead of the full path as in IE7. I guess that this is the case with IE 8 beta as well.

    I will include these limitations in the documentation.

    Best wishes,
    Veskoni
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017