Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Om de ûnderfining foar jo te ferbetterjen is tydlik de funksjonaliteit dan dizze website troch ûnderhâldswurk beheind. Wannear in artikel jo probleem net oplost en jo in fraach stelle wolle, kin ús stipemienskip jo helpe yn @FirefoxSupport op Twitter en /r/firefox op Reddit.

Sykje yn Support

Mij stipescams. Wy sille jo nea freegje in telefoannûmer te beljen, der in sms nei ta te stjoeren of persoanlike gegevens te dielen. Meld fertochte aktiviteit mei de opsje ‘Misbrûk melde’.

Mear ynfo

Dizze konversaasje is argivearre. Stel in nije fraach as jo help nedich hawwe.

second download fails

  • 1 antwurd
  • 1 hat dit probleem
  • 16 werjeftes
  • Lêste antwurd fan cor-el

more options

I developed a web site with a protected download area (using .htpasswd) containing many pdf documents and download exe files.

The website works correctly with all Microsoft browsers as well as Chrome and Opera.

It also works correctly with Firefox the first time you open or download a file in a session. On subsequent attempts to read or download a file, I get and error of the form "C:\Users\tom\AppData\Local\Temp\0tdBH5YZ.pdf.part could not be saved, because the source file could not be read."

If you shutdown firefox completely and re-login to the website, it again works one time.

I use a very simple php script to support the download where the relevant function is:

function Download($file) { $rtn = FALSE; if (file_exists($file)) { $rtn = TRUE; $size = filesize($file); $type = filetype($file); header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Type: '.$type); header('Content-Length: '.$size); header('Content_Transfer-Encoding: Binary'); header('Content-Disposition: attachment; filename='.basename($file)); header('Expires: 0'); header('Cache-Control: no-cache, must-revalidate'); header('Pragma: public'); ob_clean(); flush();

$lr = readfile($file); if ($lr == FALSE or $lr != $size) { echo "error in readfile
"; $rtn = FALSE; } } return $rtn; }

I developed a web site with a protected download area (using .htpasswd) containing many pdf documents and download exe files. The website works correctly with all Microsoft browsers as well as Chrome and Opera. It also works correctly with Firefox the first time you open or download a file in a session. On subsequent attempts to read or download a file, I get and error of the form "C:\Users\tom\AppData\Local\Temp\0tdBH5YZ.pdf.part could not be saved, because the source file could not be read." If you shutdown firefox completely and re-login to the website, it again works one time. I use a very simple php script to support the download where the relevant function is: function Download($file) { $rtn = FALSE; if (file_exists($file)) { $rtn = TRUE; $size = filesize($file); $type = filetype($file); header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Type: '.$type); header('Content-Length: '.$size); header('Content_Transfer-Encoding: Binary'); header('Content-Disposition: attachment; filename='.basename($file)); header('Expires: 0'); header('Cache-Control: no-cache, must-revalidate'); header('Pragma: public'); ob_clean(); flush(); $lr = readfile($file); if ($lr == FALSE or $lr != $size) { echo "error in readfile<br>"; $rtn = FALSE; } } return $rtn; }

Alle antwurden (1)

more options

This sounds more like a problem with your computer setup than with the website. A possible cause of this issue is a problem with your security software or with the permissions that is preventing Firefox from accessing this file in the temp folder.

You can check the temp folder when this happens (don't close this warning pop-up).


Boot the computer in Windows Safe mode with network support to see if that has effect in case security software is causing problems.