upload files

could anyone tell me how to upload file from flex and send to rails
on mail abhishekchess1@gmail.com