![]() |
Path to the files folder
Hi All,
I'm trying to upload some images into the 'files' section of my site, then access them via a static page using the WYSIWYG editor. I've tried so many different paths to the folder to try and access the image but nothing works. I have my xcart install in a directory called "creamery" so I thought it would simply be this: /creamery/files/image.jpg No good. Anyone know how to include an image on a static page that you've uploaded into the files section? |
Re: Path to the files folder
You have the correct path, but keep in mind that by default the files folder has an .htaccess file with the following:
Deny from all Normally I leave this in place, and I create a subcategory and add my images or whatever I upload into the subcategory then add a .htaccess file to that subcategory with the simple line: Allow from all This retains that security in the files section in case there are future parts that you want to remain protected. Or you could just delete that .htaccess and be done with it, all up to you. |
Re: Path to the files folder
Thanks for the tip jdiehl. I've deleted the .htaccess file from that folder and the path is still no good. So weird...
|
Re: Path to the files folder
If you are trying to access them from within xcart site then the path will be "files/image.jpg". Also make sure permissions on the directory files allows you to read from there
|
Re: Path to the files folder
You can also test access to the file just by going to:
http://domain.com/creamery/files/image.jpg Obviously use your own domain name. If that works then you must be entering the path into the static page wrong some how. You might need to just use the full path domain included if that's easier. |
Re: Path to the files folder
Hey Guys,
Figured it out. I'm currently not "live" yet and I'm using a developemtn server that has a "/~username" extension before the folder name. I just needed to add that in and it's all good now! Thanks for the tips! |
All times are GMT -8. The time now is 11:27 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.