Share » Forums » Developer » Error uploading image : A valid image...

Error uploading image : A valid image file is required

Error uploading image : A valid image file is required

Friday 22 April 2011 7:03:10 am - 2 replies

Author Message

Betsy Gamrat

Monday 25 April 2011 5:44:57 am

Possible causes:

Permission issue - eZ can't move the image into the var directory - check the directory and file permissions with ls -la

Configuration issue - the MIME type for the uploaded image isn't on the server as an image

http://httpd.apache.org/docs/current/mod/mod_mime.html

The client PC may also have the image type associated with a different MIME type

Image type - is the image an icon?

More information:

Which eZ version?

Server type/version, MIME settings (/etc/httpd/conf/httpd.conf is a good place to start)

PHP verison

Directory permissions for var directory

Check /etc/httpd/logs/error_log and var/log/error.log

CALMUS Julien

Monday 02 May 2011 1:17:43 am

No the image isn't an icon. It's a PNG file.

eZ version is 4.3.0.

var directory permissions is the first think I check, no problem on it, all permissions available.

PHP 5, Apache 2, I haven't the exact versions because I only have a FTP access on this server.

I didn't find /etc/httpd/ directory on my server (work fine) or on the server which have the image problem. So I can't check MIME setting. Have you an idee how to find this settings?

Thanks a lot

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu