Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Upload script hangs on large files
I have an upload script that receives an imagefile, performs a bit of magic on it (some GD-functions) and then stores it on the server.
The script works fine with images up to around 150Kb in size but when I try to upload really big images (like hi-res pics from my digicam, from 600Kb to 3Mb in size) the script seems to hang and then crash. It does however on most occasions still work, although it hangs at the end of the script it seems, but the file is still uploaded, altered and stored in the correct folder. It just never reaches the final part of the script (which is some HTML-output).
I have no idea what's wrong. Does anybody know if there's some sort of upper limit to the size of a file that can be uploaded via PHP? I'm using the copy()-function to upload the file btw.
"codito, ergo sum"
0 · ·