NOTE: This blog is no longer active. The content is left for posterity's sake. Please visit my new blog for fresher, more colorful content.

Flash Upload, HTTP 406 and Frustration

December 8, 2006

I know I'm supposed to pepper in some "normal people" posts here and there, but what can I say, right now we are on a nerd streak.

In the latest alpha of SlideShowPro Director, we are implementing a Flash based uploading architecture, mainly for upload progress and multiple file uploads. When the first build got out to a few testers, we immediately saw issues with the uploader silently failing.

Upon testing, I discovered that the upload was returning an HTTP error code of 406, which I had never heard of before. I had to read over this rather cryptic document four or five times before I halfway understood what was going on.

After a lot of digging, I stumbled across this livedoc, where it was revealed in the comments that the 406 (or sometimes a 403) was returned when Apache had mod_security enabled with particular settings. As laid out in the comment, this is fixed by adding a .htaccess file with the following:

<IfModule mod_security.c>
	SecFilterEngine Off
	SecFilterScanPOST Off
</IfModule>

Suddenly, all is well again.

Filed under Design, Technology

Comments

Mom says:

Yes - you owe me a "normal" post!!!!!!!!

Comments are closed for this entry

You are Reading...

This is an archived entry written by Brad Daily on December 8, 2006. You may search through the archives by date or category below.

Archives by Month

Archives by Category

iTunes Affiliate

Free Download: Single of the Week. Only at iTunes