Jump to content

can't upload image files?


nikefido

Recommended Posts

I have a script which uploads "any" file type successfully (it doesn't differentiate between file extensions) - but I cannot seem to upload files that are images?

 

I have tested .jpg and .png files, both of which don't work. However, .txt, .doc files (etc) will work.

 

Is this a setting in php.ini? Do I need to use the GD library for some reason?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/92979-cant-upload-image-files/
Share on other sites

There are no settings in php or web servers that limit the type of file that can be uploaded.

 

This is likely a file size problem. Does your code have any logic that is checking the ['error'] element of the $_FILES array to tell you why the upload failed?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.