image upload
Hi there.. I have xstandard (full version) set up on a clients site and it all works well apart from the web service for uploading images. To cut it short it is trying to upload to a folder that is actually the file name. http://myurl/imagename.jpg
It is saying permissions aren’t set.
I am wanting to upload the images to a folder called images… Anyone know where it’s going wrong?
Cheers
Wazza
Warren
Premtech Web Design
http://www.premtech.com.au
It is saying permissions aren’t set.
I am wanting to upload the images to a folder called images… Anyone know where it’s going wrong?
Cheers
Wazza
Warren
Premtech Web Design
http://www.premtech.com.au
For the PHP version (which we use) you need to edit the imagelibrary.php file and set the constants defined there to match your particular needs.
For example ours has this for the main library folder:
Also be sure that the temporary locations defined in the file are world readable and writeable.
HTH.
Dan Champion, Champion IS, Mooch Marketing, Revish
For example ours has this for the main library folder:
Code: |
define("XS_LIBRARY_FOLDER", "/www/cwv2/images"); // The folder where received files/folders should be saved. |
Also be sure that the temporary locations defined in the file are world readable and writeable.
HTH.
Dan Champion, Champion IS, Mooch Marketing, Revish
Thanks heaps for that…
Cheers
warren
Warren
Premtech Web Design
http://www.premtech.com.au
Cheers
warren
Warren
Premtech Web Design
http://www.premtech.com.au
I have since found that my web server has now changed to php safe mode. Now it wont let me upload images again…any tips for safe mode?
Warren
Premtech Web Design
http://www.premtech.com.au
Warren
Premtech Web Design
http://www.premtech.com.au
Is chmod possible?
premtech wrote: |
…any tips for safe mode? |
If PHP is running in Safe Mode, in php.ini, include the path to temp folder and library folder in ‘safe_mode_include_dir’ directive. You may also need to grant apache user ownership of the temp folder.
Vlad Alexander
XStandard Development Team
http://xstandard.com