Help Me Plz

Started on the old forum in January 2011 · view the original in the archive · old links redirect here

8 replies · 417 views · started 15 years ago · 1 min read

5 participants
something else Fellow · 2,296 posts #2

I would use a header to force download that way you keep your file locations hidden

arnage Lead · 811 posts #3

(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

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
arnage Lead · 811 posts #5

U welcome.

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
frostymarvelous Senior · 266 posts #6

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!

GumSlone Administrator Principal · 1,690 posts #7

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

External image (may be gone)

frostymarvelous Senior · 266 posts #9

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!

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close