Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Allow visitor to download pdf files!


Guest

Recommended Posts

Posted

I'd like to allow any visitor to my site downloading a pdf file. I have provided a link:

 

<a href="../files/download/document.pdf"><b>Instructions Download</b></a>

 

The link works fine but when the visitor clicks on it an "Authorization required" window appears. Any pointers at how can this be avoided?

 

Many thanks in advance....

Posted
I'd like to allow any visitor to my site downloading a pdf file. I have provided a link:

 

<a href="../files/download/document.pdf"><b>Instructions Download</b></a>

 

The link works fine but when the visitor clicks on it an "Authorization required" window appears. Any pointers at how can this be avoided?

 

Many thanks in advance....

If you are not going to offer paid downloads, do as suggested. Otherwise, create a different directory for free downloads and provide a link to it.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted
Backup and delete the htaccess file in the download folder.

 

Create a folder called whatever you like and put the file in there. Then link to that file in that folder and you will keep your protection on your downloads folder if you choose to sell downloads in the future

 

EDIT: Beat me to it Jack :)

Regards

 

Mark A Reynolds

Posted

Thanks a lot, that was it! One more question though... does it means any potential security hole? The htaccess file was there for something wasn't it?

 

Anyway many thanks again,

otsarri

Posted
Thanks a lot, that was it! One more question though... does it means any potential security hole? The htaccess file was there for something wasn't it?

 

Anyway many thanks again,

otsarri

 

see above

Regards

 

Mark A Reynolds

Posted

Ok, I got it now!!

I did not know that the download folder had this function, I understand now what the htaccess file does and how to provide a folder for free downloads.

 

Thanks to everyone who took the time to answer the question.

 

All the best,

otsarri

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...