File Attachments Directory?

Hello I’m trying to learn how to implement an mp3 player into cs-cart and I’ve got it implemented using the file attachment section, but it can not play the file from the var/attatchment/27889/test1.mp3 url, but if I copy that same test1.mp3 to the root directory or another folder it will play. Also is there a way to get the variable for the full url /var/attachments/29292/test1.mp3



instead of seeing the



mywebsite.com - This website is for sale! - mywebsite Resources and Information.



This way I don’t have to hardcode the /var/attachments/29292/ in the attachments.tpl

Hi Slionheart,



I looked at your problem.


[quote]I’ve got it implemented using the file attachment section, but it can not play the file from the var/attatchment/27889/test1.mp3 url, but if I copy that same test1.mp3 to the root directory or another folder it will play.[/quote]

You can’t play this file, because you don’t have permissions to this directory. You need to change the .htaccess file in folder var with next content:


Order deny,allow
Deny from all

order allow,deny
allow from all



where we allow access to mp3 files



Regards,

Jake

Thanks man awesome, I got it now!!!