flex 403 upload ioError 2032 php

May 21st, 2008

I was deploying FotoLOAD to the first customer/beta tester. It all worked on some of my test servers but it threw some exception at the end of uploading an image on some of mine and it gave me same exception on this customer`s server.

The fact that you can’t print out the returned response at ioError didn’t help. I dug out that you can set up an event listener to http status so I at least found out that it was returning me 403 (forbidden). I had no idea why it does this as I could contact that file and upload in any other way without any 403.

disp.addEventListener(flash.events.HTTPStatusEvent.HTTP_STATUS, onStatus);

With proxyTrace and a lot of googling I came to this explanation (ctf+F for 403) and solution.

<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>

It works. I also made the admin part for FotoLOAD midi and this is the screenshot:

fotoload admin

I have written this so someone else with this problem might find it quicker than I did.
Read and let read :)
  • del.icio.us
  • Reddit
  • Digg
  • DZone
  • email
  • Facebook
  • HackerNews
  • Twitter
  • StumbleUpon

Leave a Reply