PNG upload |
Hi,
Attempting to upload a PNG picture(in the image link) and it is not allowing it to upload. I am able to upload other PNG images. I can't upload picture in codeigniter forum attachment . Image link : https://drive.google.com/open?id=0Bz2laj...FNrN1RzWXc This is my image upload code. PHP Code: $config['upload_path'] = FCPATH.'public/images/pins/';
Practice | Practice | Practice
If you can upload other PNG images, then the PNG that is failing might have the PNG extension, but the file mime type does not match that of a PNG image.
CodeIgniter not only checks if a file extension is correct, but it also checks the if the mime type of the file is correct. |
Welcome Guest, Not a member yet? Register Sign In |