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
Comments are closed for this entry
Mom says:
Yes - you owe me a "normal" post!!!!!!!!