Problem with file permissions
I've implemented a code to sequentially copy, crop and resize an image to adjust it to a smaller size with different ratio.
Everything works correctly in the development server. However I have problems in the production server:
First of all, the code creates an exact copy of the file from the source to the destination. The copy works fine, and this is how it is created:
-rw-rw-rw- 1 www-data www-data 25256 2012-03-14 11:36 17-f07.jpg
Afterwards I added a chmod in order to give the image file total permissions
-rwxrwxrwx 1 www-data www-data 25256 2012-03-14 11:29 17-f07.jpg
The thing is that I can't edit the copied file once created, (with the same user www-data !! ). So there is an error when the code tries to crop or resize it subsequently.
Any help appreciated.
First of all, the code creates an exact copy of the file from the source to the destination. The copy works fine, and this is how it is created:
can you pin point the code which does the above and post it here. Maybe there is a problem when overwriting a file with the same name ?
Problem solved!
It was because of the GD library. It was not installed in production.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks