Jump to content

Chrome shows file, IE10 shows dialog box


Chrisj

Recommended Posts

In Chrome, and IE8, when this link is selected:

 



<a href="../upload/[blk1.thumbnail]"><form action="../upload/[blk1.thumbnail]"><input type="image" src="../images/MI.png"></form></a>


 

the file appears successfully.

 

In IE10 and IE9, instead of the file appearing successfully, a dialog box appears asking "Do you want to open or save (the file name) from www...com? OPEN SAVE CANCEL

 

In FF it says "You have chosen to open (the file name) which is application/ocet-stream from www...com OPEN SAVE CANCEL

 

What can I add (or change) so that the file appears, upon selecting the link, in IE10, IE9 and FF? instead of a dialog box appearing?

Link to comment
https://forums.phpfreaks.com/topic/296438-chrome-shows-file-ie10-shows-dialog-box/
Share on other sites

Why in the world are you wrapping a form in a <a>?  That is certainly not how it works.  Are you trying to display an image when you click?  You haven't really given us a clear understanding of what you are trying to do and what kind of file it's supposed to serve.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.