FileReference - how to upload image in certain folder?

I have one customer, which need to upload images on the server in certain directory (folder).
How can I use it with flash?
Thank you