Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 23rd, 2002, 03:21 PM
Garrett_44 Garrett_44 is offline
rubbish in javascript
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: London
Posts: 683 Garrett_44 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 41 m 39 sec
Reputation Power: 8
Question using "AddType application/octet-stream" in .htaccess

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

Reply With Quote
  #2  
Old May 23rd, 2002, 08:09 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Try ForceType instead.

Reply With Quote
  #3  
Old May 23rd, 2002, 08:51 PM
Garrett_44 Garrett_44 is offline
rubbish in javascript
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: London
Posts: 683 Garrett_44 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 41 m 39 sec
Reputation Power: 8
>Try ForceType instead.

can you be a little more descriptive?? whats forcetype and how do i use it??

thanks in advance
Gar

Reply With Quote
  #4  
Old May 23rd, 2002, 09:04 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #5  
Old May 24th, 2002, 08:02 AM
Garrett_44 Garrett_44 is offline
rubbish in javascript
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: London
Posts: 683 Garrett_44 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 41 m 39 sec
Reputation Power: 8
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

Reply With Quote
  #6  
Old May 24th, 2002, 07:36 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Please search here (all forums) with the exact keyword ForceType. It's been discussed many times.

Reply With Quote
  #7  
Old May 25th, 2002, 07:44 AM
Garrett_44 Garrett_44 is offline
rubbish in javascript
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: London
Posts: 683 Garrett_44 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 41 m 39 sec
Reputation Power: 8
i have, also under the search "download images" and i can't find one thread that seems to resolve the problem clearly.

a+
gar

Reply With Quote
  #8  
Old May 26th, 2002, 08:13 AM
Garrett_44 Garrett_44 is offline
rubbish in javascript
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: London
Posts: 683 Garrett_44 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 41 m 39 sec
Reputation Power: 8
AddType application/octet-stream mp3

this works but with any image format it fails!

a+
gar

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > using "AddType application/octet-stream" in .htaccess


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT