Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

File I/O Error - Error #2038

Participant ,
Nov 07, 2006 Nov 07, 2006
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.
10.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 08, 2006 Nov 08, 2006
Anyone???
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 23, 2007 May 23, 2007
Hi,

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

Thanks
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
May 23, 2007 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 23, 2007 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" ...
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 11, 2007 Jun 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....
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 11, 2007 Jun 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...
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 22, 2007 Jun 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)}


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 04, 2010 Nov 04, 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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 08, 2015 Feb 08, 2015
LATEST

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;

       }

  }

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines