Skip to main content
Kristian Wright
Known Participant
November 7, 2006
Question

File I/O Error - Error #2038

  • November 7, 2006
  • 9 replies
  • 10735 views
I've seen a few posts on this error but none of them seem to solve my
issue.

I'm trying to upload some files via a FileReference object, with a CF
backend. The CFC works fine with smaller files (eg under 300k), but
with files over this size, sometimes it works, sometimes it doesn't.

When it doesn't work, I get the following I/O Error:

IOErrorEvent
type="ioError"
bubbles=false
cancelable=false
eventPhase=2
text="Error #2038: File I/O Error.
URL: my URL

The server side script is working, as I can try and upload a smaller
file, and it works. But when I'm getting the I/O error, the app stops
before it even reaches the CFC. I've set a Progress listener to the
FileUpload object, and it seems to just slow down and eventually stop,
throwing the I/O error before file upload has reacherd the total bytes
of the file.

Does anyone know what might be going on here?

Thanks,
K.
    This topic is closed to new replies. Start a new post to keep the conversation going.

    9 replies

    Participant
    February 8, 2015

    This seems to be related to the following:

    1. the files you are trying to upload are from a network drive

    2. the files you are trying to upload are from a drive that you do not have permissions to

    In the above cases when accessing the "size" property of FileReference you will get an exception

    You can use the following:

    private function getSize(file:FileReference):Number{

           try{

                return file.size;

           }catch(e:Error){

                return 0;

           }

      }

    Participant
    June 22, 2007
    I received this error only once, when I tried to upload an image using FileReferenceList.browse(filters). The image was corrupted and had no file size. When I tried to get the size of the item, I got the following message:

    Error: Error #2038: File I/O Error.
    at flash.net::FileReference/get size()

    Try wrapping any inspection of the FileReference.fileList items in a try/catch to silence the errors and skip the offensive files:

    try{
    trace(fileReferenceList.fileList[0].size);
    } catch(e:Error){trace(e.message)}


    Participant
    November 4, 2010

    Adobe seems blatantly silent on this issue. Adobe, this and other issues with multifile uploading are a real problem and need to be addressed!

    Participant
    June 11, 2007
    I think Adobe/Macromedia team must debug this issue... ti's very sytrange issue that happened in 3 uploads from 7 on one of my production server...
    Participant
    May 23, 2007
    file size limit 100 Mb on server

    tried to upload file in 500 Kb, from 5 uploads 2 failed. It's very weird that this "sometimes it works" ...
    June 11, 2007
    I am always experiencing the damn I/O Errors.
    It seems when the connection status is bad (as a result from pinging to server) , the I/O error triggers.
    Do u have any good idea for handle with this kind of I/O Errors. As any idea for supervention-uploading after I/O error....
    Participant
    May 23, 2007
    Hi,

    Have same issue...
    Do you have solution now for solve this?

    Thanks
    Known Participant
    May 23, 2007
    HI!

    I haven't had that problem, but it looks like you should check the upload file size limit on the server.

    Kristian Wright
    Known Participant
    November 8, 2006
    Anyone???