Groups > Multimedia > Macromedia rich int apps > Re: File Upload , Browse Button




File Upload , Browse Button

File Upload , Browse Button
Sun, 4 Jun 2006 13:53:46 +0000
I am trying to build an application that contains a part where the user will 
need to upload multiple small files to our servers. I am wondering if there is 
a way that a web flex application would be able to access the user`s local file

system? ( I am using Flex Builder 2.0 Beta 3 ). How could I add a browse button

to my application? For example the manager of the application wants to add a 
picture and wants to explore a disk (D:/) and find it, a jpg or whatever, how 
can I add a button for that?  I need that when that button is clicked an 
explorer window opens and when the user selects a file the file will be 
included in a textbox or something. In the same way he or she can add multiple 
files.

 THANKS!

Post Reply
Re: File Upload , Browse Button
Tue, 13 Jun 2006 00:06:33 +000
You cannot access the local file system from a Flex application (it is due to 
security restrictions) and they (adobe) are not willing to change that in a 
near future.
 Just by now, I can figureout some options:
 1.- Use FileReference class to let the user to find a file and let flash to 
upload that single file (a file that you will never knows where it is in the 
local file system.)
 2.- If you are not restricted to crossplatform and you could base your app in 
Windows , then you could write your own standalone application to wrap you flex

one and do what you want with the local file system (you can call the wrapper 
from Flex and say: "hey, wrapper, ask the user to locate some files and
then, 
upload them to the server and tell me the result.")
 3.- Wait for Apollo (the new Adobe technology expected by the end of 2006)... 
However, I do not think this is an option.


Post Reply
about | contact