I have a web site in php. Here I have uploaded image with size 1 MB. It’s uploaded in the server successfully. But it’s not displaying. I have enabled the read write permission to the folder, which contains images. While uploading smaller size it’s working fine.
But in the case of larger image (greater than 1 MB) it’s not working. I have checked my php info. There the file upload maximum size is 25 MB. So what could be the problem here?
Cases why this might happen:
1-Some web hosts include header or footer code when the output being served is greater than a certain limit. They usually use this for analytic purposes. See if you can remove these headers/footers or, if you are using readfile() from php, give a direct link to the browser instead.
2-Check the file size of the uploaded image, sometimes the upload gets cut off and no error message is given.
Also, an example link would have helped