This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: Force File Download at Page Level
Author
Message |
Blobman
Newbie


Joined: 09 April 2008
Posts: 18
Posted: 26 April 2011 at 3:19pm

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
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 27 April 2011 at 5:47am

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
 
Blobman
Newbie


Joined: 09 April 2008
Posts: 18
Posted: 27 April 2011 at 3:52pm

Not having any luck. 

I only used the code that you provided in my directory specific .htaccess file.
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 28 April 2011 at 5:37am

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
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version