Ovo će web mjesto raditi na ograničen način, dok obavljamo održavanje stranice. Ako neki članak ne riješi tvoj problem i ako želiš postaviti pitanje, naša zajednica za podršku spremna je pomoći na Twitteru @FirefoxSupport i na Redditu /r/firefox.

Pretraži podršku

Izbjegni prevare podrške. Nikad te nećemo tražiti da nas nazoveš, da nam pošalješ telefonski broj ili da podijeliš osobne podatke. Prijavi sumnjive radnje pomoću opcije „Prijavi zlouporabu”.

Saznaj više

Excel download

  • 8 odgovora
  • 1 ima ovaj problem
  • 1 prikaz
  • Posljednji odgovor od tfodor

more options

When I download an Excel fike from my own website (for example: https://www.tfodor.hu/pareto-diagram-excel.php Download = Letöltés) the attached image appears. The file is being downloaded. This is not the case with Edge and Chrome.When you download an Excel file from another webpage, you are asked to save or open it.

When I download an Excel fike from my own website (for example: https://www.tfodor.hu/pareto-diagram-excel.php Download = Letöltés) the attached image appears. The file is being downloaded. This is not the case with Edge and Chrome.When you download an Excel file from another webpage, you are asked to save or open it.
Priložene slike ekrana

Izabrano rješenje

Then I guess you cannot edit your webserver configuration, so you should contact their support with your issue.

Pročitaj ovaj odgovor u kontekstu 👍 0

Svi odgovori (8)

more options

Ez a konkrét eset a weboldal hibájából fakad, ugyanis a webkiszolgáló nem tölti ki a „content-type” HTTP-fejlécet, amely a fájl MIME-típusát tartalmazná (XLSX esetén egyébként application/vnd.openxmlformats-officedocument.spreadsheetml.sheet értéket kellene tartalmaznia).

In English: The current issue is caused by the website itself, the web server does not fill the „content-type” HTTP header, which would contain the MIME type of the file (for XLSX the correct MIME type would be application/vnd.openxmlformats-officedocument.spreadsheetml.sheet).

Izmjenjeno od Balázs Meskó

more options

Unfortunately, this did not solve the problem. Content-Type is optional and this error has not occurred before. I tried, but nothing changed.

more options

What have you tried exactly? Content-Type is indeed not mandatory, but it SHOULD be set (all caps, meaning the RFC says so). Even Chromium complains that the Content-Type is invalid, it just detects the actual MIME type through MIME sniffing.

more options

Thank you for your help. I placed in the head the next: <meta http-equiv="content-type" content="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"> For this nothing changed. Firefox on my iPhon can open this Excel file correctly.

more options

First of all: Firefox for iOS is actually a skinned Safari, so it behaves differently than "normal" (Gecko-based) Firefox.

That meta tag is not valid, and it also does not make much sense. You don't need to set Content-Type at a HTML file, but in the HTTP headers. So to fix this issue, I'd need to know what web server do you use.

Izmjenjeno od Balázs Meskó

more options

My webpage is on Hostinger server.

more options

Odabrano rješenje

Then I guess you cannot edit your webserver configuration, so you should contact their support with your issue.

more options

Thanks for the help! I finally found the solution on the internet. I enclose the two links that can help others if they run into this problem: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Configuring_server_MIME_types https://htaccessbook.com/useful-htaccess-rules/