0

Observing FileReference.upload() I notice that if I'm uploading large file (big enough for upload to last for some time) and cut the connection (by pulling out LAN cable for example) in the middle of upload, Flash doesn't report an error... In fact it continues to fire Progress events all the way to "successful" completion.

Is this a bug? Shouldn't there be an exception thrown or error event fired?

jayarjo
  • 16,124
  • 24
  • 94
  • 138

1 Answers1

1

Accordning to the documentation on FileReference.upload() it should invoke an IOErrorEvent when such a thing happens.

Try listening for an IOErrorEvent

yourFilereference.addEventListener(IOErrorEvent.IO_ERROR, error)
function error(e:IOErrorEvent):void
{
    //Do something
}
Johan Lindkvist
  • 1,734
  • 15
  • 24