Connecting Tech Pros Worldwide Help | Site Map

visio type file is not opening

Familiar Sight
 
Join Date: Mar 2007
Posts: 172
#1: Feb 23 '09
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
Familiar Sight
 
Join Date: Mar 2007
Posts: 172
#2: Feb 23 '09

re: visio type file is not opening


just am open from direct path
Familiar Sight
 
Join Date: Feb 2007
Posts: 135
#3: Feb 24 '09

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.
Familiar Sight
 
Join Date: Mar 2007
Posts: 172
#4: Feb 24 '09

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
Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Posts: 3,731
#5: Feb 24 '09

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.
Familiar Sight
 
Join Date: Feb 2007
Posts: 135
#6: Feb 25 '09

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