visio type file is not opening

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maheswaran
    New Member
    • Mar 2007
    • 190

    visio type file is not opening

    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

  • maheswaran
    New Member
    • Mar 2007
    • 190

    #2
    just am open from direct path

    Comment

    • devsusen
      New Member
      • Feb 2007
      • 136

      #3
      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.

      Comment

      • maheswaran
        New Member
        • Mar 2007
        • 190

        #4
        Hi devsusen,

        Can u tell how i can or where i can configure the browser to see the vsd file extension

        Comment

        • Atli
          Recognized Expert Expert
          • Nov 2006
          • 5062

          #5
          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.

          Comment

          • devsusen
            New Member
            • Feb 2007
            • 136

            #6
            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.

            Comment

            • Roblem
              New Member
              • Jul 2011
              • 1

              #7
              I had a similar problem. tried all the various mimetypes on line then tested the content type during an upload and found that "applicatio n/vnd.visio" actually worked. I am not 100 percent certain but it might have to do with the verison of Visio installed on your system when you upload the doc. In this case it was Visio 2010

              Comment

              Working...