0
votes

I am trying to upload a file to my web based Flex application. However, all the research I'm doing only discusses uploading a file from a user to a web server destination.

Is there a way to upload a file to the app for processing? Or must it be uploaded to the server and processed there? (It is trivially easy to download content from a server.)

1
Flex apps live in the browser or desktop so you cant 'upload' to it - its local, not remote. Do you mean 'load a file from users system into the app'? - user1901867
Apparently, yes. I kind realized that was the case this morning as I was showering. Thanks. - ShawnPConroy

1 Answers

0
votes

The only way (except the variant with server upload/download) is to use FileReference.load() method and the FileReference.data property for file bytes processing. You should call this method after calling FileReference.browse() with standart browse dialog, where use will select the file.