Page 1 of 1

Solved : Image Manager - File could not be uploaded

Posted: Thu Feb 12, 2009 12:21 am
by benjy
Hello, grateful for any help on the following:
I am using CMS Made Simple 1.5.2 "Caguas", PHP Version 5.1.6, MySQL version 5.0.45, Apache version 2.2.3, on CentOS 5.2
I am trying to use the Image Manager to upload image files. I can use it successfully to create new folders.
When I upload a file, I get the error message "File could not be uploaded. This could be a permissions or Safe mode problem?"
I have checked my php.ini and Safe mode is Off.
I have checked permissions of the uploads/ and of the uploads/images/ directories, both of which are 755, owner apache group apache.
httpd is running as apache. I have tried using chmod to make them both 777, but I get the same error.
I have tried changing the umask from 022 to 002, but I get the same error.
If I put an image file into the uploads/images/ directory (manually) and chown as apache with 644, then I can see the image in the Image Manager, and it creates the thumbnail.
I have also tried using very small images to see if the filesize was a problem - with no success.
I would be eternally grateful if anyone can offer me a solution or things I should try.
many thanks
ben

Re: Image Manager - File could not be uploaded

Posted: Thu Feb 12, 2009 1:50 am
by spcherub
Have you tried uploading the image using the File Manager instead? If this works, there could be a problem with the ImageMagick binaries on your system - I think the Image Manager uses this to create the thumbnails automatically upon upload.

Re: Image Manager - File could not be uploaded

Posted: Thu Feb 12, 2009 9:25 am
by benjy
Thank-you for taking the time to reply. I had not thought of trying the File Manager.
I have tried that now. I tried to upload an image file (jpg) and non-image file (pdf).
Both times I get the same "filename failed to upload successfully" error message.
I can use the File Manager to create new directories, and they are displaying as I would expect - Fileowner apache, Perms 755.
I have tried chmod to 777, but I still get the same error message when trying to upload with the File Manager.
Any more ideas? Thanks for the help.
Ben

Re: Image Manager - File could not be uploaded

Posted: Sun Feb 15, 2009 9:39 am
by libralion
benjy wrote: Thank-you for taking the time to reply. I had not thought of trying the File Manager.
I have tried that now. I tried to upload an image file (jpg) and non-image file (pdf).
Both times I get the same "filename failed to upload successfully" error message.
I can use the File Manager to create new directories, and they are displaying as I would expect - Fileowner apache, Perms 755.
I have tried chmod to 777, but I still get the same error message when trying to upload with the File Manager.
Any more ideas? Thanks for the help.
Ben
Try clearing the cache in the admin. Maybe that helps?

Johanna

Re: Solved : Image Manager - File could not be uploaded

Posted: Wed Feb 25, 2009 9:43 pm
by benjy
Thanks for the tips.
In the end it turned out to be the permissions on the tmp file.
In my php.ini file, the upload_tmp_dir = /tmp
but apache did not have write permissions.
chmod 777 /tmp
and it works!