My application uses proprietary data files, with ".plg" as an extension.
I wan't to post these on my web server for download through HTTP.
I though all I had to do was add an .htaccess file with one or both of these lines in it:
However, when viewing the URL in IE6, IE just views it as a text.
When viewing the URL in Mozilla 1.4, it opens a download dialog saying: The file "myfile.plg" is of type application/octet-stream (HTML Document), ....
And it offers to "open it with the default application (htmlfile)" or "Save it to disk".
Why do IE and Mozilla still think the file, named myfile.plg and with "Content-Type: application/octet-stream" and "Content-Encoding: applicaiton/octet-stream" in the HTTP headers is an HTML file?? How can I get both Mozilla and IE to just want to "Save As"?
- Bill
Get the best answers to your questions -- See FAQ481-4875.
I wan't to post these on my web server for download through HTTP.
I though all I had to do was add an .htaccess file with one or both of these lines in it:
Code:
AddType application/octet-stream .plg
AddEncoding application/octet-stream .plg
However, when viewing the URL in IE6, IE just views it as a text.
When viewing the URL in Mozilla 1.4, it opens a download dialog saying: The file "myfile.plg" is of type application/octet-stream (HTML Document), ....
And it offers to "open it with the default application (htmlfile)" or "Save it to disk".
Why do IE and Mozilla still think the file, named myfile.plg and with "Content-Type: application/octet-stream" and "Content-Encoding: applicaiton/octet-stream" in the HTTP headers is an HTML file?? How can I get both Mozilla and IE to just want to "Save As"?
- Bill
Get the best answers to your questions -- See FAQ481-4875.