Large .JPG don't show upload.php

See all posts Reply

Large .JPG don't show upload.php new!
by JvM, 17 years, 6 months ago
If i use the test script for large images (3264 x 2448, 1,5 MB) it opens upload.php (i can see that in the URL-bar), but there is only a title that is displayed nothing else.

If i upload smaller files there is no problem.

Can you help me outReply
Re: Large .JPG don't show upload.php new!
by colin, 17 years, 6 months ago
You probably run out of memory. If your image is 1.5MB big, you will need about 5 to 8 times this to process the image, plus the memory used by your script. I would recommend increasing the memory limit to at least 32MBReply
Re: Large .JPG don't show upload.php new!
by JvM, 17 years, 6 months ago
And how will i do that?Reply
Re: Large .JPG don't show upload.php new!
by colin, 17 years, 5 months ago
See this thread

Try to raise your local memory to 20M, 32M or more. If you are on shared hosting, you might not be able to do so.

You can add this in your script:
ini_set ( "memory_limit", "20M")

Or in a .htaccess file:
php_value memory_limit 20M
Reply
Re: Large .JPG don't show upload.php new!
by JvM, 17 years, 5 months ago
And if that doesn't work?Reply
Re: Large .JPG don't show upload.php new!
by colin, 17 years, 5 months ago
If it doesn't work (but your code still works for small images), it means that you have a memory problem.

If when you try to increase the memory, it doesn't work, and your PHPinfo() doesn't show the memory increase, it means that your host doesn't allow you to raise the memory limit. That is common on shared hosting.

If it is the case, you don't have many solutions. You can try to bribe your host into raising the memory limit, or else you will have to upload smaller images.Reply