Jump to content

[Solved] Can't upload .PNG files


Recommended Posts

  • 1 year later...
  • 1 year later...

Did anyone find a solution for this problem?

I'm using PS 1.4.1 and can't upload images with .png extension, becuase of the error below.

Error message -> "Image format not recognized, allowed formats are: .gif, .jpg, .png"

Thanks,
Housy

Link to comment
Share on other sites

Hi,
This issue has been fixed for the upcoming 1.4.2 release. In the meantime you will find a workaround here: http://forge.prestashop.com/browse/PSCFI-1707


In the images.inc.php find isPicture function (line 128 in PS 1.4.1).

Then change if (empty($mimeType) OR $mimeType == 'regular file')

with if (empty($mimeType) OR $mimeType == 'regular file' OR $mimeType == 'text/plain')

and you'll be able to upload PNG images.

Thanks Thomas ;)

Housy
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...