|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
hello
trying to use.. AddType application/octet-stream jpeg in a .htaccess file which will (apparently) force the browser to prompt the user to save the image rather than display it in the browser window. bascially i read this here... http://www.javascriptkit.com/howto/htaccess9.shtml but it fails to work, can anyone tell me where i might be going wrong? thanks in advance! gar |
|
#2
|
|||
|
|||
|
Try ForceType instead.
|
|
#3
|
|||
|
|||
|
>Try ForceType instead.
can you be a little more descriptive?? whats forcetype and how do i use it?? thanks in advance Gar |
|
#4
|
|||
|
|||
|
Pretty much the same syntax as AddType. You can check here -> http://httpd.apache.org/docs/mod/mo....html#forcetype
A ScriptAlias'd cgi-bin is somewhat using ForceType to force everything within it with cgi-script. If you don't want everything within that directory to be forcetyped, you can add a <FilesMatch> directive as well. Last edited by freebsd : May 23rd, 2002 at 09:08 PM. |
|
#5
|
|||
|
|||
|
i don't understand, i use...
ForceType image/jpeg but what does this do exactly?? it seems to do nothing?? what i want to do is for this directory is make jpegs unrecognisable to the browser so that it will prompt the user to save the jpeg instead thats why the octet-stream in... AddType application/octet-stream jpeg but this does'nt seem to do anything ether??? a+ gar |
|
#6
|
|||
|
|||
|
Please search here (all forums) with the exact keyword ForceType. It's been discussed many times.
|
|
#7
|
|||
|
|||
|
i have, also under the search "download images" and i can't find one thread that seems to resolve the problem clearly.
a+ gar |
|
#8
|
|||
|
|||
|
AddType application/octet-stream mp3
this works but with any image format it fails! a+ gar |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > using "AddType application/octet-stream" in .htaccess |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|