View Full Version : File Upload , Browse Button

06-05-2006, 05:09 AM
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.


06-05-2006, 12:35 PM
take a look at FileReference and FileReferenceList

12-04-2009, 09:46 AM
private function up(e:MouseEvent):void
myFileList.addEventListener(Event.SELECT, fileRef_select);


private function fileRef_select(e:Event):void
try {
trace("selected how many files for upload ? "+e.currentTarget.fileList.length) }
catch (e:Error)
trace("error with ",e.message)

each time it isn't increasing the fileList length just overwrites...