Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » SWFUploadField Error #2044: Unhandled IOErrorEvent

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 2271 Views
  • frankmullenger
    Forum Moderator
    51 Posts

    SWFUploadField Error #2044: Unhandled IOErrorEvent Link to this post

    I have successfully installed DataObjectManager and SWFUploadField modules on my local machine, using them for a basic image gallery. I upload the files via ftp to the server, the SWFUpload still works for me on my local machine when uploading images using the CMS on the server.

    My colleagues get the flash error:
    Error #2044: Unhandled IOErrorEvent

    Then a js alert box with:
    An error occured in the upload. Try again later.

    I have the same version of flash, browser etc. I think a file path or bad upload URL is to blame and that my machine is perhaps using some files from the local harddrive to successfully complete the upload? Not sure what config changes I need to make or anything, when I look at var_dump(SWFUploadConfig::DumpConfiguration()); all the paths seem correct.

    Also, what file does this URL point to?


  • frankmullenger
    Forum Moderator
    51 Posts

    Re: SWFUploadField Error #2044: Unhandled IOErrorEvent Link to this post

    Update: This one took a lot of debugging.

    I think the situation was on my Ubuntu machine I had flash version 10.1 r53 installed, but NOT the debug version. Other Windows machines with the same version of flash may have had the debug version installed. I could upload files from my Ubuntu machine, the Windows machines would get a js popup with an error like:
    An Error occurred in the Upload. Try again later.

    Also a flash related error like:
    Error #2044: Unhandled IO Error Event. Error #2038 File I/O Error.

    This was being triggered by an HTTP ERROR, the server handing back a status code of 406 "Not Acceptable"
    SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 406.

    The solution for us was this one line in the .htaccess file to turn OFF mod_security:
    SecFilterEngine Off

    HTH someone.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.