Jump to content

Disabling forced download on virtual product files


orangemint

Recommended Posts

Hi,

 

I've had a look at the getfilecontroller.php but can't work out how to disable the forced download on virtual product files.

e.g. If I upload a html file as a virtual product I want the html file to open in the web browser when clicked from the email not downloaded.

 

Can someone point me in the right direction please?

Link to comment
Share on other sites

Ah, figured it out.

 

Search for the line

header('Content-Disposition: attachment; filename="'.$filename.'"');

and replace attachment with inline

 

This way you can add a html files as a virtual download and the user will be redirected to the webpage when they click the download link effectively allowing you to sell access to a web page.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...