X
Kliknite sem pre prechod na mobilnú verziu webu.

Fórum podpory

Firefox recognizes download file type as text regardless of content type response header

Pridané

I have Firefox ESR 52.9.0 (32-bit) installed on Windows XP. When I download a file, it always recognizes it as text and adds a "txt" extension to it. This is done regardless of the server's HTTP response headers, indicating the file type as either "application/octet-stream" or "application/vnd.ms-access" or anything else for that matter.

Same version on different operating systems may differ in behavior. I tried uninstalling and re-installing and removing all plugins/extensions but it doesn't seem to make a difference.

I have Firefox ESR 52.9.0 (32-bit) installed on Windows XP. When I download a file, it always recognizes it as text and adds a "txt" extension to it. This is done regardless of the server's HTTP response headers, indicating the file type as either "application/octet-stream" or "application/vnd.ms-access" or anything else for that matter. Same version on different operating systems may differ in behavior. I tried uninstalling and re-installing and removing all plugins/extensions but it doesn't seem to make a difference.
Citácia

Ďalšie informácie o systéme

Aplikácie

  • Identifikácia prehliadača: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36

Viac informácií

Autor otázky

Here are screenshots from same version of browser on two different operating systems.

Here are screenshots from same version of browser on two different operating systems.
Pomohlo vám to?
Citácia
alex_mayorga
  • Top 25 Contributor
  • Moderator
360 riešení 2822 odpovedí

Hi Jonathan!

Prior to helping you here I'd strongly encourage you to upgrade to a supported operating system, per https://support.microsoft.com/en-us/lifecycle/search?alpha=Microsoft%20Windows%20XP%20Service%20Pack%202 the version you currently use ceased to be supported on 4/8/2014.

https://distrochooser.de/en/ is generally a good starting point to find an alternative.

Once that is taken care of, please also update the version of Firefox ESR per https://www.mozilla.org/en-US/firefox/68.1.0/releasenotes/

If you still can reproduce the issue then, please let us know here and we'd be happy to help.

Please excuse me but I strongly believe that continuing to use unsupported well known vulnerable versions of both the OS and browser is a disservice to yourself and harmful for the web as a whole.

Thanks!

Hi Jonathan! Prior to helping you here I'd strongly encourage you to upgrade to a supported operating system, per https://support.microsoft.com/en-us/lifecycle/search?alpha=Microsoft%20Windows%20XP%20Service%20Pack%202 the version you currently use ceased to be supported on 4/8/2014. https://distrochooser.de/en/ is generally a good starting point to find an alternative. Once that is taken care of, please also update the version of Firefox ESR per https://www.mozilla.org/en-US/firefox/68.1.0/releasenotes/ If you still can reproduce the issue then, please let us know here and we'd be happy to help. Please excuse me but I strongly believe that continuing to use unsupported well known vulnerable versions of both the OS and browser is a disservice to yourself and harmful for the web as a whole. Thanks!
Pomohlo vám to?
Citácia

Autor otázky

Some browser versions are beyond our control. However, this also happens with 68.0.2 on Windows 10.

Some browser versions are beyond our control. However, this also happens with 68.0.2 on Windows 10.
Pomohlo vám to?
Citácia
alex_mayorga
  • Top 25 Contributor
  • Moderator
360 riešení 2822 odpovedí

Hi Jonathan!

Could you please share a URL where this can be reproduced?

Have you tried https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode yet?

Thanks!

Hi Jonathan! Could you please share a URL where this can be reproduced? Have you tried https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode yet? Thanks!
Pomohlo vám to?
Citácia

Autor otázky

Unfortunately I cannot share the link, as it is our business product which requires username/password. I did try starting Firefox in safe mode (without any plugins/extensions) but it didn't make a difference.

Unfortunately I cannot share the link, as it is our business product which requires username/password. I did try starting Firefox in safe mode (without any plugins/extensions) but it didn't make a difference.
Pomohlo vám to?
Citácia
alex_mayorga
  • Top 25 Contributor
  • Moderator
360 riešení 2822 odpovedí

Hi Jonathan!

Please review https://support.mozilla.org/en-US/kb/change-firefox-behavior-when-open-file#w_changing-download-actions it might be you ought to add the content type on Firefox.

Please let us know if this solves your question.

Thanks!

Hi Jonathan! Please review https://support.mozilla.org/en-US/kb/change-firefox-behavior-when-open-file#w_changing-download-actions it might be you ought to add the content type on Firefox. Please let us know if this solves your question. Thanks!
Pomohlo vám to?
Citácia

Autor otázky

Unfortunately, it doesn't. I don't see the content type there, which may be the problem. However, I don't see a way of editing this and adding a new content type, which may very well solve the issue.

Unfortunately, it doesn't. I don't see the content type there, which may be the problem. However, I don't see a way of editing this and adding a '''new''' content type, which may very well solve the issue.
Pomohlo vám to?
Citácia
cor-el
  • Top 10 Contributor
  • Moderator
17414 riešení 157306 odpovedí

You can inspect the MIME database key with the registry editor (regedit.exe) and do a search for that MIME type (file extension) via Ctrl+F. Be cautious with editing the registry as there is NO UNDO possible: all changes are applied immediately. You can export key(s) in the registry editor before making changes. You can check specific file extension keys (e.g. .mdb) in the registry with the registry editor.

  • HKEY_CLASSES_ROOT\.xxx

You can check a possibly linked MIME type in the MIME Database registry key.

  • HKEY_CLASSES_ROOT\MIME\Database\Content Type\
You can inspect the MIME database key with the registry editor (regedit.exe) and do a search for that MIME type (file extension) via Ctrl+F. Be cautious with editing the registry as there is NO UNDO possible: all changes are applied immediately. You can export key(s) in the registry editor before making changes. You can check specific file extension keys (e.g. .mdb) in the registry with the registry editor. * HKEY_CLASSES_ROOT\.xxx You can check a possibly linked MIME type in the MIME Database registry key. * HKEY_CLASSES_ROOT\MIME\Database\Content Type\
Pomohlo vám to?
Citácia

Autor otázky

Thanks, I was afraid that was the solution. However, this is too "invasive", and clients' browsers are beyond our control.

Thanks, I was afraid that was the solution. However, this is too "invasive", and clients' browsers are beyond our control.
Pomohlo vám to?
Citácia
jscher2000
  • Top 10 Contributor
8635 riešení 70623 odpovedí

On your Firefox 68 installation, you can use my extension to log the content-type headers sent by the server:

https://addons.mozilla.org/firefox/addon/content-type-fixer/

Click the Zzzz button to start logging; that also enables a drop-down menu to view the log (Add/Edit).

If the server is sending text/plain, that probably means the .mdb extension is not mapped to a content type. I assume it must be a Linux server, since I'm pretty sure Microsoft IIS would have that mapped?

For Apache or similar, you define new content types using AddType.

https://httpd.apache.org/docs/2.4/mod/mod_mime.html#addtype

Depending on your hosting, you may need to use .htaccess if you can't update the central config files.

On your Firefox 68 installation, you can use my extension to log the content-type headers sent by the server: https://addons.mozilla.org/firefox/addon/content-type-fixer/ Click the Zzzz button to start logging; that also enables a drop-down menu to view the log (Add/Edit). If the server is sending text/plain, that probably means the .mdb extension is not mapped to a content type. I assume it must be a Linux server, since I'm pretty sure Microsoft IIS would have that mapped? For Apache or similar, you define new content types using AddType. https://httpd.apache.org/docs/2.4/mod/mod_mime.html#addtype Depending on your hosting, you may need to use .htaccess if you can't update the central config files.
Pomohlo vám to?
Citácia
Položiť otázku

Ak chcete pridať odpoveď, musíte sa prihlásiť k svojmu účtu. Ak účet doteraz nemáte, položte novú otázku.