Solved : Image Manager - File could not be uploaded

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
benjy
New Member
New Member
Posts: 3
Joined: Thu Feb 12, 2009 12:02 am

Solved : Image Manager - File could not be uploaded

Post 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
Last edited by benjy on Wed Feb 25, 2009 9:41 pm, edited 1 time in total.
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Re: Image Manager - File could not be uploaded

Post 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.
benjy
New Member
New Member
Posts: 3
Joined: Thu Feb 12, 2009 12:02 am

Re: Image Manager - File could not be uploaded

Post 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
libralion
Forum Members
Forum Members
Posts: 191
Joined: Fri Jul 11, 2008 4:11 pm

Re: Image Manager - File could not be uploaded

Post 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
benjy
New Member
New Member
Posts: 3
Joined: Thu Feb 12, 2009 12:02 am

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

Post 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!
Post Reply

Return to “CMSMS Core”