This is my site kiranraje.in, i have big probleme, when im going to download any file frm pc it get download, and when i downld it frm mobile then it not get download, which code have to use, plz help me
Help Me Plz
Started on the old forum in January 2011 · view the original in the archive · old links redirect here
I would use a header to force download that way you keep your file locations hidden
(copy-paste) Here is a useful method for delivering multimedia file downloads to your users. Typically, browsers will attempt to play or stream such files when direct links are clicked. With this method, provide a link to a multimedia file and a dialogue box will provide users the choice of saving the file or opening it. Here are a few htaccess rules demonstrating the technique (edit file types according to your specific needs):
instruct browser to download multimedia files
AddType application/octet-stream .avi AddType application/octet-stream .mpg AddType application/octet-stream .wmv AddType application/octet-stream .mp3
I use this in my downloads folder htaccess
<Files * .*> ForceType application/octet-stream </Files>
Will force all files to be downloaded. No matter the extension.
Perfection comes at a cost
I accept liberty!
frostymarvelous wrote: I use this in my downloads folder htaccess
<Files * .*> ForceType application/octet-stream </Files>
Will force all files to be downloaded. No matter the extension.
this is only good for pc download not for mobiles
Advertise your mobile site for FREE with AdTwirl
Ah! So that's why opera mini shows my text huh? Thanks.
Added after 11 minutes:
Mobitalk just use arnages solution. I thought mine would be simpler but hey, you gotta manually so them. Lol.
Gumslone, can't wildcards be used with that solution?
Perfection comes at a cost
I accept liberty!