# File upload in flash form

**URL:** <https://forum.kirupa.com/t/file-upload-in-flash-form/183707>\
**Category:** Uncategorized\
**Created:** [March 29, 2006, 11:16am UTC](https://forum.kirupa.com/t/file-upload-in-flash-form/183707 "2006-03-29T11:16:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jusko](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jusko](https://forum.kirupa.com/u/jusko)\
**Post date:** [March 29, 2006, 11:16am UTC](https://forum.kirupa.com/t/file-upload-in-flash-form/183707/1 "2006-03-29T11:16:32Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![phorte](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@phorte](https://forum.kirupa.com/u/phorte)\
**Post date:** [March 29, 2006, 11:31am UTC](https://forum.kirupa.com/t/file-upload-in-flash-form/183707/2 "2006-03-29T11:31:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Rasper](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Rasper](https://forum.kirupa.com/u/Rasper)\
**Post date:** [March 29, 2006, 11:36am UTC](https://forum.kirupa.com/t/file-upload-in-flash-form/183707/3 "2006-03-29T11:36:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jusko](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jusko](https://forum.kirupa.com/u/jusko)\
**Post date:** [March 29, 2006, 11:40am UTC](https://forum.kirupa.com/t/file-upload-in-flash-form/183707/4 "2006-03-29T11:40:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kungFuChris](https://avatars.discourse-cdn.com/v4/letter/k/a3d4f5/32.png) [@kungFuChris](https://forum.kirupa.com/u/kungFuChris)\
**Post date:** [March 29, 2006, 1:37pm UTC](https://forum.kirupa.com/t/file-upload-in-flash-form/183707/5 "2006-03-29T13:37:09Z")

</div>

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.

> [@jusko](#):
>
> 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
