Hi,
How can I force a download for the following file extensions:
gif, jpg, jpeg, png, psd, bmp, tiff, dib, tif, jpe, jfif, swf and txt.
I'm having trouble finding a code that will support all of them.
Thanks in advance,
Oli

Hi,
How can I force a download for the following file extensions:
gif, jpg, jpeg, png, psd, bmp, tiff, dib, tif, jpe, jfif, swf and txt.
I'm having trouble finding a code that will support all of them.
Thanks in advance,
Oli
REMOVED
Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.
If you try and force an image download, it will just simply open in the browser right?
goodbye.
That's what I thought. Because if you load an exe it will force it's download, but if you load an image it will show the image. There must be some way of forcing the download of forcing "Save Image As...".
REMOVED
Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.
I don't think so, because I think the Save Image As... feature is implimated by the browser rather than any script being able to access that function as all browsers are coded differently.
goodbye.
lol mostly impossible anymore to force downloads cause it will always come up with open with:
or save to: window in firefox and it'll always come up to were you want to save it too.
.:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
.:.: Stand up for what is right, even if you stand alone:.:.
Ah i do not actually think this is possible all i can suggest is saving it as a zip![]()
My website is an image, text and flash host (www.urload.com). If I created a zip for every file that's been uploaded it would eat up my bandwith a lot more.
Last edited by Halting; 01-09-2006 at 09:50 PM.
REMOVED
Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.
Hm then i don't think its possible, try www.google.com![]()
Want to hide these adverts? Register an account for free!