# Need help with FileReference

**URL:** <https://forum.kirupa.com/t/need-help-with-filereference/278556>\
**Category:** Uncategorized\
**Created:** [January 1, 2009, 8:22pm UTC](https://forum.kirupa.com/t/need-help-with-filereference/278556 "2009-01-01T20:22:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arosemena](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@arosemena](https://forum.kirupa.com/u/arosemena)\
**Post date:** [January 1, 2009, 8:22pm UTC](https://forum.kirupa.com/t/need-help-with-filereference/278556/1 "2009-01-01T20:22:19Z")

</div>

## i have been trying to do an upload file form in flash with the FileReference class, my problem is that flash gives no error and makes it look like it worked but the file isnt in the server, heres the actionscript ----------------- AS3 ------------------------ var file:FileReference = new FileReference(); var U:URLRequest = new URLRequest(“[http://www.totalwebdata.com/File.php](http://www.totalwebdata.com/File.php)”); btn.addEventListener(MouseEvent.CLICK, search); file.addEventListener(Event.SELECT, up); function search(e:MouseEvent) {file.browse();} function up(e:Event){ btn.visible = false; file.upload(U); }

## and heres the php ---------------- PHP ------------------------- \<?php $place = “Files/”; $place = $place . $\_FILES[‘Filedata’][‘name’]; move\_uploaded\_file($\_FILES[‘file’][‘tmp\_name’],$place) ?\>

hope someone can help
