trying to upload image for pdf and getting error

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
error message

Image format not recognized, allowed formats are: .png, .jpg, .jpeg, .gif


tried it with a .png and a .jpg

then tried it with default logo.gif  (nopcommerce logo from theme folder) and it uploaded this happily


Is there a size (pixel  or kb ) limitation on this image upload ?
13 years ago
Try another browser, may be it help. There is condition, which throw this exception

if(!postedFile.ContentType.Equals("image/jpeg") && !postedFile.ContentType.Equals("image/gif") && !postedFile.ContentType.Equals("image/png"))
                        {
                            throw new NopException("Image format not recognized, allowed formats are: .png, .jpg, .jpeg, .gif");
                        }
13 years ago
i'm using IE8

before i read your reply, i had changed the format of one of my images to gif - and it uploaded without problem ( but still no luck with the same image in jpg format)

then I took your advice and tried with firefox - it uploads the jpg quite happily !

Thanks for your help :)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.