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

How to display the selected file clientside before upload ?

4 Answers 86 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
CSurieux
Top achievements
Rank 2
CSurieux asked on 02 Sep 2008, 08:09 AM
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

4 Answers, 1 is accepted

Sort by
0
Accepted
Veselin Vasilev
Telerik team
answered on 02 Sep 2008, 09:28 AM
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.
0
CSurieux
Top achievements
Rank 2
answered on 02 Sep 2008, 09:41 AM
Perfect, thanks.
CS
0
chirag
Top achievements
Rank 1
answered on 03 Sep 2008, 12:18 AM
This doesn't work for me.
I am using Firefox 3 and IE8 beta.
0
Veselin Vasilev
Telerik team
answered on 03 Sep 2008, 08:32 AM
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.
Tags
Upload (Obsolete)
Asked by
CSurieux
Top achievements
Rank 2
Answers by
Veselin Vasilev
Telerik team
CSurieux
Top achievements
Rank 2
chirag
Top achievements
Rank 1
Share this question
or