This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Helicon Ape
 Helicon Tech : Helicon Ape
Subject Topic: Force File Download at Page Level Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Blobman
Newbie
Newbie


Joined: 09 April 2008
Online Status: Offline
Posts: 18
Posted: 26 April 2011 at 3:19pm | IP Logged Quote Blobman

From what i've read, this line of code in the .htaccess file will force a sitewide download prompt for the file I associate in the code; in this case .png

AddType application/octet-stream .png

How do I write this per page level, for multiple formats (eps, png) ?
Back to Top View Blobman's Profile Search for other posts by Blobman
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -149
Posted: 27 April 2011 at 5:47am | IP Logged Quote Guests

HEllo,

May I suggest using the following instead:

Code:
SetEnvIf Mime ^image/png force-download
SetEnvIf Request_URI "\.eps$" force-download
Header set Content-disposition "attachment" env=force-download


The code provided is global. In case you would like to use it per directory, create a separate .htaccess inside the folder and insert this rule.

Regards
Andrew
Back to Top View Guests's Profile Search for other posts by Guests
 
Blobman
Newbie
Newbie


Joined: 09 April 2008
Online Status: Offline
Posts: 18
Posted: 27 April 2011 at 3:52pm | IP Logged Quote Blobman

Not having any luck. 

I only used the code that you provided in my directory specific .htaccess file.
Back to Top View Blobman's Profile Search for other posts by Blobman
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -149
Posted: 28 April 2011 at 5:37am | IP Logged Quote Guests

Please, describe what request you're making, what file you're requesting and all detailed information on what you did.
It'd be great to see the Helicon log file. Httpd.conf already has the lines that enable logging, simply uncomment them.
Code:
RewriteLogLevel 9
LogLevel debug


Regards
Andrew
Back to Top View Guests's Profile Search for other posts by Guests
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You can vote in polls in this forum