Image preview
-
I am displaying a preview of the Image before uploading it to the server. This works fine with IE6, but not working with newer versions. The previewing is achieved using an aspx page which has an asp:image control. I set the ImageURL property to the "file from the physical location". But in IE7's case, the ImageURL property does not display "file from the physical location". for instance: <asp:image id ="imgPreview" ImageUrl="file:///D:\image1.jpg"> Kindly provide any help. Thanks in advance. Regards, Rijz
-
I am displaying a preview of the Image before uploading it to the server. This works fine with IE6, but not working with newer versions. The previewing is achieved using an aspx page which has an asp:image control. I set the ImageURL property to the "file from the physical location". But in IE7's case, the ImageURL property does not display "file from the physical location". for instance: <asp:image id ="imgPreview" ImageUrl="file:///D:\image1.jpg"> Kindly provide any help. Thanks in advance. Regards, Rijz
Please change the file path from UNC to Virtual. It will then work. Client site should have permission to show the image directly. :thumbsup:
Abhishek Sur My Latest Articles Working with Excel using MDAC
Basics on LINQ and Lambda Expressions
Create .NET Templates -
Please change the file path from UNC to Virtual. It will then work. Client site should have permission to show the image directly. :thumbsup:
Abhishek Sur My Latest Articles Working with Excel using MDAC
Basics on LINQ and Lambda Expressions
Create .NET TemplatesThanks for your reply Abhishek.. I cannot use a Virtual path here because, this path is obtained from a browse button text field. The user will be selecting file from any physical location on the disc and my program is supposed to preview it. It is working fine with IE6... but not in IE7 :( How can I achieve this? Thanks Rijesh
-
Thanks for your reply Abhishek.. I cannot use a Virtual path here because, this path is obtained from a browse button text field. The user will be selecting file from any physical location on the disc and my program is supposed to preview it. It is working fine with IE6... but not in IE7 :( How can I achieve this? Thanks Rijesh
I guess it's not working in FF also :) This is normal behavior, in IE6 this is security problem. Unless user uploaded something to page, neither JS or ASP should be able to access any information of that file. All new browsers in FileUpload html element don't anymore show file path, instead only file name. I think you will have to do it without preview.
-
I guess it's not working in FF also :) This is normal behavior, in IE6 this is security problem. Unless user uploaded something to page, neither JS or ASP should be able to access any information of that file. All new browsers in FileUpload html element don't anymore show file path, instead only file name. I think you will have to do it without preview.