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.

gif fail after download using php

  • 3 antwurd
  • 3 hawwe dit probleem
  • 12 werjeftes
  • Lêste antwurd fan R.S.R

more options

I create a web page in php. after download a file using php:

header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="sth.txt"'); readfile("sth.txt");

the gif animation dosn't work. in IE9 every thing is ok. please help me.

I create a web page in php. after download a file using php: header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="sth.txt"'); readfile("sth.txt"); the gif animation dosn't work. in IE9 every thing is ok. please help me.

Alle antwurden (3)

more options

I do not know if I understand this question correctly, so maybe this does not help. But I think you may have a problem with your MIME-types. Firefox does not trust application/octet-stream (security policy). I think you should really use the normal web-standard Mimetypes for your gifs, webpages or textfiles.

https://developer.mozilla.org/en/properly_configuring_server_mime_types

more options

Can you post a link to that web page?

more options

Thanks for your reply. My web page is offline, in my pc using EasyPHP. I tried other mime types like text/plain too. Let me explain my question more: There is sth similar to Yahoo Mail. My page has a link, like Files(2), it means two new files is available for download. After user clicks it, he see the links to download the files. before download there must be a MySQL query to decrease the number of new files (1), then download the file. I implement this using AJAX. first time every thing is ok, but for second time, after user clicks the link to download, the AJAX gif is not working (image loads without animation). Also for testing, I placed a gif in my page to show all the time (not for AJAX). after the first download, the animaion is stop and show a still image. By the way, my page do net refreash after click and download.

Of course, i solved my problem by using window.open() instead of window.location.href for redirect to download page.

Thanks for help.