| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Path to the files folder | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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?
__________________
v 4.1.11, v 4.2 |
|||||||
#2
|
|||||||
|
|||||||
![]() 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.
__________________
Jason Diehl Finding Cures for Your Online Headaches: http://www.internetmedicineman.com/ |
|||||||
#3
|
|||||||
|
|||||||
![]() Thanks for the tip jdiehl. I've deleted the .htaccess file from that folder and the path is still no good. So weird...
__________________
v 4.1.11, v 4.2 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() 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
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#5
|
|||||||
|
|||||||
![]() 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.
__________________
Jason Diehl Finding Cures for Your Online Headaches: http://www.internetmedicineman.com/ |
|||||||
#6
|
|||||||
|
|||||||
![]() 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!
__________________
v 4.1.11, v 4.2 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|