Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

PDF getting downloaded without any extension

  • 4 回覆
  • 3 有這個問題
  • 1 次檢視
  • 最近回覆由 shivaraagi

more options

We are trying to download a PDF file which is not having any extension. The type of PDF is 'File' . Can you please tell me what might be the reasons for this issue .if possible can you give any suggestions on how to download PDF using c# code .

We are trying to download a PDF file which is not having any extension. The type of PDF is 'File' . Can you please tell me what might be the reasons for this issue .if possible can you give any suggestions on how to download PDF using c# code .

所有回覆 (4)

more options

these are the screenshots for reference.

more options

These are end user forums. You would be better off asking in a development forum such as stackoverflow. If the software you are writing allows setting content-disposition then that may be your best solution. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition

more options

Do you want to download the PDF file or display it in a Firefox tab?

The screenshot show SUMO support threads about not being able to view the PDF file is Firefox.

more options

kbrosnan said

These are end user forums. You would be better off asking in a development forum such as stackoverflow. If the software you are writing allows setting content-disposition then that may be your best solution. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition
 Thanks for the response, 
 My code already has the setting for content-disposition, yeah I would  go with development forums for more clarity.

Thank you.