Ky sajt do të funksionojë me kufizime, teksa bëjmë mirëmbajtjen e tij për të përmirësuar punën tuaj. Nëse një artikull nuk e zgjidh problemin tuaj dhe dëshironi të bëni një pyetje, kemi bashkësinë tonë të asistencës, e gatshme për t’ju ndihmuar, te @FirefoxSupport në Twitter dhe/r/firefox në Reddit.

Kërkoni te Asistenca

Shmangni karremëzime gjoja asistence. S’do t’ju kërkojmë kurrë të bëni një thirrje apo të dërgoni tekst te një numër telefoni, apo të na jepni të dhëna personale. Ju lutemi, raportoni veprimtari të dyshimtë duke përdorur mundësinë “Raportoni Abuzim”.

Mësoni Më Tepër

gif fail after download using php

  • 3 përgjigje
  • 3 e kanë hasur këtë problem
  • 12 parje
  • Përgjigjja më e re nga 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.

Krejt Përgjigjet (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.