Recently on one of my websites I decided to integrate Uploadify. It’s a very cool jquery app that simply allows you to upload files of your liking and specifications. I highly suggest going to their website to download the files and set it up on your site. It’s remarkably simple.
But, my problem today was that when I moved it to a new site, it would pause at ~ 90% complete. This was no good.
The problem was, as should have been obvious, that the php.ini file was configured to not allow big enough files.
Since I was uploading more than what was set in the file, I clearly needed to increase the values. Below are suggested values from the Uploadify site, but you should base them on your own applications. Having a lower limit is a tricky security feature if you’re worried about people uploading virus’s etc.
To do this, browse to: program files/PHP/php.ini and open it. Do a quick search and change the values of the following to what you’d deem sensible, based on your application.
; Maximum size of POST data that PHP will accept.post_max_size = 50M; Whether to allow HTTP file uploads.file_uploads = On
; Maximum allowed size for uploaded files.upload_max_filesize = 50M