images upload problem
Posted: Sat 8. Nov 2003, 16:16
I have the whole script working. Only 1 thing is still bugging:
Question 1:
When I try to upload an image in a created dir I get the following error:
Error while creating user directory.
Please do not try again - this is an server error! Contact the webmaster to tell as soon as possible!
If I upload it to the root I get the error:
Error while writing file to storage (2).
Could this have something to do with "directory listing". It's turned off and we can turn it on with a .htaccess file in the dir we want to list. Or we could try to set it on side-wide.
Yesterday we did manage to uploade some pics. I see the following in the dir:
/phpwcms/phpwcms_filestorage/2/2_13.jpg
I can show this image in my browser by pointing to the correct url. Si it is there. But in the admin it shows the name of the image, but no example if you click it, and no other images can be uploaded.
I assume that the /2/ means that it is a user directory. So why the error "can not create user dir"?
Question 2:
What can I do with filecats? Isn't that the same as subdirs in the images directory?
Thanx for answering.
Moozie
--------------------------------------------------------------------
By the way, when I check my servers error_log I see that every time I try to upload a picture, the following line is added in the error_log:
File does not exist: /home/httpd/vhosts/zone51.nl/httpdocs/img/sp1.gif
We installed the program in:
/home/httpd/vhosts/zone51.nl/httpdocs/phpwcms. So that dir "phpwcms" is not shown in the error log. Could that be the cause??? And where can I correct that. The rest of the prog workd fine. So in other paths the phpwcms dir is correctly supplied....
Question 1:
When I try to upload an image in a created dir I get the following error:
Error while creating user directory.
Please do not try again - this is an server error! Contact the webmaster to tell as soon as possible!
If I upload it to the root I get the error:
Error while writing file to storage (2).
Could this have something to do with "directory listing". It's turned off and we can turn it on with a .htaccess file in the dir we want to list. Or we could try to set it on side-wide.
Yesterday we did manage to uploade some pics. I see the following in the dir:
/phpwcms/phpwcms_filestorage/2/2_13.jpg
I can show this image in my browser by pointing to the correct url. Si it is there. But in the admin it shows the name of the image, but no example if you click it, and no other images can be uploaded.
I assume that the /2/ means that it is a user directory. So why the error "can not create user dir"?
Question 2:
What can I do with filecats? Isn't that the same as subdirs in the images directory?
Thanx for answering.
Moozie
--------------------------------------------------------------------
By the way, when I check my servers error_log I see that every time I try to upload a picture, the following line is added in the error_log:
File does not exist: /home/httpd/vhosts/zone51.nl/httpdocs/img/sp1.gif
We installed the program in:
/home/httpd/vhosts/zone51.nl/httpdocs/phpwcms. So that dir "phpwcms" is not shown in the error log. Could that be the cause??? And where can I correct that. The rest of the prog workd fine. So in other paths the phpwcms dir is correctly supplied....