Die Funktionalität dieser Website ist durch Wartungsarbeiten eingeschränkt, die Ihr Erlebnis verbessern sollen. Wenn ein Artikel Ihr Problem nicht löst und Sie eine Frage stellen möchten, können Sie unsere Gemeinschaft über @FirefoxSupport auf Twitter, /r/firefox oder Reddit fragen.

Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Weitere Informationen

What MIME type do I use to get Firefox to view PDFs without a save dialog?

  • 1 Antwort
  • 1 hat dieses Problem
  • 14 Aufrufe
  • Letzte Antwort von Vertigo

more options

When I download a PDF off of most sites, it opens directly in my external program (okular). However, on my own server this is not the case: I get a save dialog first. I believe the problem is actually caused by the MIME type I am sending, but I cannot seem to figure out what that should be. I am using PHP 5.2.17 on apache 2.2.17 with mod_xsendfile to download the files. The headers I am sending are:

header('X-Sendfile: test.pdf'); header ('Content-Type: application/pdf'); header('Content-Disposition: inline; filename="testing.pdf"');

When I download a PDF off of most sites, it opens directly in my external program (okular). However, on my own server this is not the case: I get a save dialog first. I believe the problem is actually caused by the MIME type I am sending, but I cannot seem to figure out what that should be. I am using PHP 5.2.17 on apache 2.2.17 with mod_xsendfile to download the files. The headers I am sending are: header('X-Sendfile: test.pdf'); header ('Content-Type: application/pdf'); header('Content-Disposition: inline; filename="testing.pdf"');

Alle Antworten (1)

more options

Well, never mind: it looks like I deleted my mimetypes.rdf and restarted Firefox and now it works.