Problem during overwrite the existing image

See all posts See thread Reply

Re: Problem during overwrite the existing image new!
by Jenifer, 18 years, 1 month ago
Well, the destination file is an image, so I'm limited as to what permissions that file can be set to. And, the directory is set to 777. I'm using version 0.20 that I grabbed off of phpclasses.org.

These files were originally uploaded to the directory using FTP. This scenerio works for some reason:

1. I delete the original FTPed image
2. I use your upload class to upload that image
3. I use your upload class to upload and overwrite the image in step #2.

I wonder why this would be different than just using your upload class to overwrite the FTPed image? I checked all of the images in the directory and they all have the same apparent permissions checked (0644). Both the images FTPed and the images uploaded using the class.

Very odd...
JeniferReply
Re: Problem during overwrite the existing image new!
by colin, 18 years, 1 month ago
Yes, it's a bit strange. Maybe the file uploaded via FTP is owned by a different user than the one under which PHP is running.

Try version 0.21, there are more checks for the file permissions and overwriting.Reply