The power of the Mime Type in the browser (with Javascript)

[I believe this is not possible due to security issues, but:]

Is it possible to force the browser to process a file with a specific mime type without server management? I serve the files from the file: // (on the client machine itself) and I want the text files to open in any text editor.

Note. Firefox simply opens the file for viewing, which is not the desired behavior. I tried to change the file extension even to an unknown, which does not help.

+4
source share
1 answer

No, this is not possible, except maybe with IE and ActiveX, but I seriously suggest you not to use it.

+4
source

All Articles