visio type file is not opening 
February 23rd, 2009, 04:50 PM
| | Familiar Sight | | Join Date: Mar 2007
Posts: 164
| |
hi ,
i have image upload function, and i show the image preview from direct file location (like www.yahoo.com/images/sample.jpg).While showing jpg or gif the preview is open well, but uploading with .vsd file its uploaded fine but not shown in browser, but when try with visio ms office preview its good. so from am we knew my system have that extension installed to preview, but am not able to view in browser , what is the wrong,
see this http://capdigisoft.net/visio/test.html | 
February 23rd, 2009, 04:50 PM
| | Familiar Sight | | Join Date: Mar 2007
Posts: 164
| | | re: visio type file is not opening
just am open from direct path
| 
February 24th, 2009, 01:11 PM
| | Familiar Sight | | Join Date: Feb 2007
Posts: 135
| | | re: visio type file is not opening
In case of .vsd file the Mime type of the file is application/visio, application/x-visio, application/vsd, application/x-vsd. Most of the browser don't have assiociated program extension to open such mime type. You need to configure your browser i.e assiociate proper program extension with .vsd file extension.
| 
February 24th, 2009, 01:15 PM
| | Familiar Sight | | Join Date: Mar 2007
Posts: 164
| | | re: visio type file is not opening
Hi devsusen,
Can u tell how i can or where i can configure the browser to see the vsd file extension
| 
February 24th, 2009, 11:51 PM
|  | Moderator | | Join Date: Nov 2006 Location: Iceland
Posts: 3,701
Provided Answers: 4 | | | re: visio type file is not opening
Hi.
You can not simply put any random file type into a <img> tag and expect it to be read correctly by the browser.
The <img> tag is to be used with images, not Visio documents.
If you want the file to be opened using the correct application, which in your case is probably M$ Visio, then you need to either put a link to it on your page, so that users can click on it, or have PHP set the content-type and print the file contents.
There may also be some way of having the <object> or <embed> tags display it, but I don't really know how, or indeed if, that would work.
| 
February 25th, 2009, 07:48 AM
| | Familiar Sight | | Join Date: Feb 2007
Posts: 135
| | | re: visio type file is not opening
Hi,
browser won't open the .vsd file in its own window, instead it will call the assiociated program to open it. Once you try to open .vsd file using some browser, it will ask to select program to open with. Once you select such program then from next time it will open the file using the selected program.
Browser can display only specific images having extension like .jpeg, .gif, .png as they are web specific image types. The .vsd file type doesn't belongs to that group. So you may need some ActiveX or other object to show the image file.
|  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 225,662 network members.
|