# Uploading image with Flash 9 and PHP - without using FileReference Class

**URL:** <https://forum.kirupa.com/t/uploading-image-with-flash-9-and-php-without-using-filereference-class/268335>\
**Category:** Uncategorized\
**Created:** [August 12, 2008, 6:06pm UTC](https://forum.kirupa.com/t/uploading-image-with-flash-9-and-php-without-using-filereference-class/268335 "2008-08-12T18:06:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![agoldust](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@agoldust](https://forum.kirupa.com/u/agoldust)\
**Post date:** [August 12, 2008, 6:06pm UTC](https://forum.kirupa.com/t/uploading-image-with-flash-9-and-php-without-using-filereference-class/268335/1 "2008-08-12T18:06:19Z")

</div>

hi all .  
i am currently creating a software, i need to upload images form my HDD to server.  
i can do this with FileReference Object. with this code i can select file.

var f:FileReference;  
f.browse(); // for selecting file (object)

and after that i will send that FileReference object to a PHP file and i upload via that PHP file.

but i want to upload file without using FileReference Class  
i am using File Class on Air 1.0 on Flash, and that class can provide full url of image from my HDD like:  
D:\My Documents\image01.jpg

there is any way to upload this file on my HDD to server without using browse() class for selecting file on Flash with PHP?

or is there one way to convert File Class (AIR) to FileReference?
