File upload functionality


In one of my flash application, I want to upload some image files to the server.( My flash file will be sitting in the server and the image files will be uploaded to a folder( having necessary access rights) in the server).

Basically there must be a broswe button (similar to the one in HTML forms
used to attach files)

I came to knew that this can be acheived in FLASH by integrating it with JAVA SCRIPT + any of the scripting languages

Can anyone help ?