Hi there,
When I perform FileReference.upload(), error #2038 File/IO error returns. This issue happens to Firefox on Mac.
The issue is cause by FileReference.upload() is not sending the basic authentication existed in the browser, to the server (tomcat). For example, when user user is login to the server with basic authentication, HTTPService will use the authentication info to make subsequent request. However, FileReference() do not.
So is there a way to work around the issue?
1. If we use HTTPService instead, how can we upload multipart form without getting access to read the entire content? Only Adobe AIR can access the bytes of the content.
2. If we push credential header to the URLRequest(), FileReference.upload() will ignore those headers.
3. If we use a sessionID in the URL of the URLRequest to identify the user, that means a user can fake the sessionID and login on behalf of another user.
From livedocs and flex docs, this seems to be by design. But I need my application can upload content. Please if anyone knows any workaround, really appreciate for any comments
Thanks in advance,
Calebmei
FileReference upload to tomcat (spring)...The JSESSIONID is stored in a cookie. Are cookies enabled in your browser?
FileReference upload to tomcat (spring)...Also the Mac Firefox combination might be an issue. There are some topics found through google on this. In addition, the flash player 10 has some new restrictions on the file upload. File upload can only be started on an event started by the user.
yes, i have faced the same problem,
the FileReference.upload() function will be worked only for flash 10.0.0, so you could update your flash,
in my case i is working fine, try it.
thanks
venkat
Thank you for all the help and confirmations.
Cookies are enabled, otherwise user cannot login to the system.
Since this is a flash player issue with FF on Mac, and I can't ask user to downgrade their player if needed, I probably will go outside of Flex and perform the upload.
No comments:
Post a Comment