File upload in flash form

Hi!!!

Im developing a flash form for a website, and i also need that after the viewers fill the form, they could also upload 2 photos. These 2 photos can’t be bigger that 200k each… does anyone knows the AS to do this?? Can i do this in a flash form, or just in a html form?
I dont have any clue on this, so… any help would be great!!!

thanks in advance!
cheers:thumb2:

You would most likely need use php. How exactly one would use php to upload a file to your size is over my head.

Check out the FileReference class. This is new in Flash 8 and can handle your upload + progress. With that you can also check the filesize etc. But you do need a server side script like php to actually write the file to the server.

thanks for your reply!
I figured i would need php for everything (even for the form without the uploading file option)… i’m not concerned if i cant define the size of the uploaded files… i would be happy just to know how to attached any kind of file to the form!!! just a button and a text field to show the name of the attached files was all i need…oh, and also that the form and the attached files could be delivered to my mailbox!!!

cheers

Look into what Rasper said… just hit F1 and search the flash help file for it… It’s all there… Make sure you got Flash 8.