file upload directory permissions problem?
Posted: Sun Jun 29, 2003 12:18 pm
I have an admin seciton on my site which allows records to be added along with image files (for a slideshow). When a record is added, the images are uploaded and counted and everything works well.
I have a change routine which allows details to be changed as well as changes allowing the user to change a current image or add extras. If an image is to be overwritten it should leave the slide count the same, if it is an additional image, it adds to the count etc...
It works on localhost on my machine, but on the ISP's server it does not. The add, routine works fine, and the change works if you change the details, but not the images. If I try to add a NEW image, it creates a 0 byte file with the proper name and won't copy the file up.
Is this a permissions problem? I have CHMODed the images directory 0777. The funny thing is that it works for adding a brand new record, but not when you want to change images or add images to an existing record.
You may want to see the code?
I have a change routine which allows details to be changed as well as changes allowing the user to change a current image or add extras. If an image is to be overwritten it should leave the slide count the same, if it is an additional image, it adds to the count etc...
It works on localhost on my machine, but on the ISP's server it does not. The add, routine works fine, and the change works if you change the details, but not the images. If I try to add a NEW image, it creates a 0 byte file with the proper name and won't copy the file up.
Is this a permissions problem? I have CHMODed the images directory 0777. The funny thing is that it works for adding a brand new record, but not when you want to change images or add images to an existing record.
You may want to see the code?