Normally, files can be uploaded by FileReference class.
Browse files using FileReference.browse();
FileReference.addEventListener(Event.SELECT, selectHandler), this will
be called after clicking on the open button in browse dialog box.

then call FileReference.upload(new URLRequest('pathtophpfile.php');

And in pathtophpfile.php, put the below script

move_uploaded_file ($_FILES['uploadFile'] ['tmp_name'], "../uploads/
{$_FILES['uploadFile'] ['name']}");

"../uploads/ will be the path to the folder in server.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to