Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Permissions for mp3 downloads


kvongunten

Recommended Posts

Posted

I am developing a website for a record label. I have music products that list the CD tracks and samples of each track that are suppose to automatically play in the viewer's default media player when they click it. When I click on a track, a dialog box is displayed for me to enter a userid and password and includes the words "no access," obviously something I don't want my customers to do.

 

Here's my set up. Within the product description, I have a table with the track name in the first column and then a "listen" link that points to the .mp3 file located in the download folder.

 

Here's the table data:

<td bgcolor="#bbc3d3"><a href="http://domain-name.com/osCommerce/catalog/download/All_the_things_you_are.mp3" target="blank">Listen</a></td>

 

Here are the folder/file permissions that are currently set:

 

osCommerce folder = 755

catalog folder = 777

download folder = 755

pub folder = 777

file.mp3 = 755

 

I also have enabled downloading in the administration module, although I think this applies to enablement within a shopping cart. I also added foward slashs to the DIR_FS_DOWNLOAD and DIR_FS_DOWNLOAD_PUBLIC statements as they appear in the /includes/configure.php file (as suggested in Kerry Watson's osCommerce User Manual, page 92).

 

Can someone tell me if the link is correct and if the permissions are set correctly. Are there other configurations that need to be set? Thanks for your help.

 

Karl

Archived

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

×
×
  • Create New...