SWFUpload Upload Error: 500 Problem

Recently i got a client who wanted me to build a custom multiple upload function with SWFUpload into Amazon S3. There is a small introduction in case you have no idea what is SWFUpload or you want to build one up yourself, you can visit Tutorial: Cross browser Multiple Uploader With SWFUpload And JavaScript. After testing etc. everything went smoothly on my side until the program is being integrated into his server. Upload Error: 500 was appearing and causes the upload to fail.

The Problem

The problem is with flash 10 that seems to be incompatible with mod_security. This caused the flash player to fail which result in an Upload Error: 500 on SWFUpload. The other thing that also might caused it to display Upload Error: 500 was the file limit set on the server.

The Solution

Did a few search on Google and the most helpful link i found was actually in the SWFUpload forum,

Upload error 500| SWFUPload

There are a few ways to solve this problem but all of them are pointing at fixing up the server. You guys can try the following ways to fix up this problem.

1. This is what my client host service done on their server. They off the following things in their server.

SecRuleEngine Off
SecRequestBodyAccess Off

2. turn up the upload size of your web server.

<ifmodule mod_php5.c>
php_value upload_max_filesize 100M
php_value post_max_size 100M

3. You may also want to add these settings on your .htacess file. Although these doesn't work for my client but it does work for some of the people out there.

SecFilterEngine Off
SecFilterScanPOST Off 

4. Sometimes size limit also gives you problem so you may want to try increase the size on your php.ini


5. Turn off mod_security which might not be a good idea.
6. Direct your files into Amazon S3 to solve server issues