Funkcionalnosć toś togo sedła se pśez wótwardowańske źěła wobgranicujo, kótarež maju wašo dožywjenje pólěpšyś. Jolic nastawk waš problem njerozwězujo a cośo pšašanje stajiś, wobrośćo se na našo zgromoźeństwo pomocy, kótarež na to caka, wam na @FirefoxSupport na Twitter a /r/firefox na Reddit pomagaś.

Pomoc pśepytaś

Glědajśo se wobšudy pomocy. Njenapominajomy was nigda, telefonowy numer zawołaś, SMS pósłaś abo wósobinske informacije pśeraźiś. Pšosym dajśo suspektnu aktiwitu z pomocu nastajenja „Znjewužywanje k wěsći daś“ k wěsći.

Dalšne informacije

Make Firefox handle .aspx download requests correctly.

  • 3 wótegrona
  • 54 ma toś ten problem
  • 6 naglědow
  • Slědne wótegrono wót CuriousGeorge

more options

The state of Pennsylvania uses a download link structure where the actual file is followed after a .aspx file. So, when a user downloads the file, instead of downloading the file intended, a file called filedownload.aspx is saved.

Example: http://www.emarketplace.state.pa.us/FileDownload.aspx?file=COSTARS%2003%20Rebid/Solicitation_0.pdf

The workaround was to assign .aspx to preview (or Acrobat), as they were almost always pdf files (and it was still downloading the actual file, just naming it filedownload.aspx). However, they are now using the same structure for word documents and other common file formats.

Example: http://www.emarketplace.state.pa.us/FileDownload.aspx?file=6100021599/Solicitation_0.docx

How do I make firefox download the actual file, not a file names filedownload.aspx?

The state of Pennsylvania uses a download link structure where the actual file is followed after a .aspx file. So, when a user downloads the file, instead of downloading the file intended, a file called filedownload.aspx is saved. Example: http://www.emarketplace.state.pa.us/FileDownload.aspx?file=COSTARS%2003%20Rebid/Solicitation_0.pdf The workaround was to assign .aspx to preview (or Acrobat), as they were almost always pdf files (and it was still downloading the actual file, just naming it filedownload.aspx). However, they are now using the same structure for word documents and other common file formats. Example: http://www.emarketplace.state.pa.us/FileDownload.aspx?file=6100021599/Solicitation_0.docx How do I make firefox download the actual file, not a file names filedownload.aspx?

Wšykne wótegrona (3)

more options

EDITED

When I click your links, the correct application launches.

However, the site developer omitted something from the headers sent to the browser: the filename (part of the content-disposition header). So Firefox and IE both just use the page name FileDownload.

I can't think of an easy solution for this off the top of my head.

Please feel free to complain to the webmaster and point to this thread.

Wót jscher2000 - Support Volunteer změnjony

more options

I see only a content type in the response headers:

Content-Type: application/pdf
Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document

As jscher2000 wrote above, there is no file name send as part of a content-disposition header, so your only option is to copy the file name part of the link (Copy Link Location) and use it as the file name.

more options

Seeing that this is a state government website, I doubt I'll get anywhere getting the site changed.

The problem is that other browsers in a Mac OS X 10.7 environment handle these links correctly. Well, somewhat correctly, but better than Firefox.

In Safari, the PDF file is viewable directly in the browser. The word document is handled the same way with firefox, saved as FileDownload.aspx

Chrome also opens the PDF file in the browser window. However, it also does a better job with the word document, saving it as FileDownload.docx This allows me to open the download directly into Word.

In all instances, if I change the file extension from .aspx to .pdf or .docx I can view the file in its native program, which shows that the correct file is being downloaded. But it seems to be handling the file extension wrong in firefox.