Hi Tracy, Thanks for your response. I was fearing that sort of answer :)
The problem is that the security constraints are flawed: Flash/Flex cannot process locally the file that the user selected for security reasons, but it can send it to the other side of the world to a web server that hosts the flex app, where who knows what the webmaster can do to your data then! A shame really as the idea of using a closed object abstracting the user from the underlying file system and paths is a great idea... just silly not allowing you access to the user selected data once that's done. I'll probably have to write to adobe on that one. Thanks again for your reply, Cheers, Daniel --- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > This restriction is due to the security constraints of the Flash Player > running in a browser. > > > > If you run your Flex app under AIR, you can access the local file > system. > > > > Tracy > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of dlpagefr > Sent: Wednesday, April 16, 2008 6:11 PM > To: [email protected] > Subject: [flexcoders] File selection problem > > > > Hi, > When selecting files with a FileReference or FileReferenceList, I get > an object or object array containing files. > The problem is that apart from uploading these files, there is nothing > else I can seem to do with them. > 2 examples: > 1) images: I can select images and upload them to my webserver, but I > cannot load these images into the flex applet and display them... > unless I upload them to the server, then download them again. > 2) Data files: I can select a file, but I cannot parse it's contents or > process the data: I have to upload it to a server and download it > again... > This does not seem the optimum method of programming and there has to > be a better way. Uploading just to download again is a huge waste of > bandwidth - and time. Is there a way to select a file/several files and > read the contents without doing "round trips"? > > Cheers, > > Daniel >

