Friday, March 26, 2010

ioError 2038 when uploading on MAC OS X

I have for some time tried to upload files with Flex's
ability to do so... but to my surprice it seems that this feature
is not supported on all operating systems.



Using my Flex upload app on windows causes no problems no
matter what browser is used, but on Mac on the other hand the
upload attempt always fails due to the ioError 2038. The exact
error code is this:



ioError event:(flash.events::IOErrorEvent)#0

bubbles = false

cancelable = false

currentTarget = (flash.net::FileReference)#1

creationDate = Tue Jun 21 16:40:36 GMT+0200 2005

creator = (null)

modificationDate = Tue Jun 21 16:40:37 GMT+0200 2005

name = ''1024.jpg''

size = 160966

type = (null)

eventPhase = 2

target = (flash.net::FileReference)#1

text = ''Error #2038''

type = ''ioError''



the event:ProgressEvent is triggered but then stops caused by
the ioError.



It is also important to note that the PHP script on the
server that handles the uploading, never is reached when making the
request from a MAC. From a windows pc there is no problem.



What to do? Am I missing mime types or what? I write
request.contentType = ''multipart/form-data'';



As of now I can not use Flex to upload files in real life
because of this which is really sad.



Another thing that I'm puzzled by is that compiled files
(*.swf) is really to big. For instance my source code (*.mxml) is
only 15Kb in size but when compiled dazzling 255Kb... Why on earth?



Please help.

ioError 2038 when uploading on MAC OS X
They just released an update for the Mac Flash player that
fixes this issue:




http://www.versiontracker.com/dyn/moreinfo/macosx/11622



I can't seem to track down the updated debug version
though...ioError 2038 when uploading on MAC OS X
Hi dirtyhand



Thanks for the link you provided.



However I do not see anything mentioned about this case
issue? Do you happen to know why generated *.swf files are so large
in their file size?
Hi again Dirtyhand



I have now tried the version you suggested and I'm sorry to
say that the problem persist.



If there is no solution to this problem I have to give up
Flex and choose another technology such as AJAX and CGI/PERL to
achieve what I want.



Too sad.
When browsing the net for problems with the Flex uploading
feature on MAC it is clear there are many problems in this area.
Does anybody have a clue to how to solve this particular problem
please...



Thanks...
I've been having the same problem as musicplayer_dk. After
using wireshark to monitor the http exchange, it seems the http
headers of upload requests sent by flash player on mac osx are
malformed. Apache is able to process them but they are rejected by
lighttpd which uses more strict parsing. Unfortunately
FileReference does not provide access to the headers it sends. I
can confirm that the problem persists with the latest version of
flash player and flex sdk.



I enjoy developing in flex and this is really the only thing
that has caused me trouble so far. I hope this problem will be
resolved before the release of flex 3.
This is probably a different problem, but it appears that the
os x Flash runtime 9.0.115.0 requires a non-empty response the
server for POSTs. Some servers, i.e. Amazon S3, send back an empty
response. To fix S3 Flash os X uploads, check out
http://docs.amazonwebservices.com/AmazonS3/2006-03-01/HTTPPOSTFlash.html.

No comments:

Post a Comment