# Problems Storing a File Obtained through browseForOpen in Adobe AIR

**URL:** <https://forum.kirupa.com/t/problems-storing-a-file-obtained-through-browseforopen-in-adobe-air/272609>\
**Category:** flash\
**Created:** [October 7, 2008, 1:30am UTC](https://forum.kirupa.com/t/problems-storing-a-file-obtained-through-browseforopen-in-adobe-air/272609 "2008-10-07T01:30:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobTheBuilder](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@bobTheBuilder](https://forum.kirupa.com/u/bobTheBuilder)\
**Post date:** [October 7, 2008, 1:30am UTC](https://forum.kirupa.com/t/problems-storing-a-file-obtained-through-browseforopen-in-adobe-air/272609/1 "2008-10-07T01:30:12Z")

</div>

I am new to the forums here and fairly new to flash, but I could really use some help. I am building an AIR application that needs to allow a user to choose a file while offline, store the file, and record the path to the stored file in a SQLite DB.

I have the SQLite DB working, and I can move the chosen file to the image repository I created in the applicationStorageDirectory.

My problem is that browseForOpen returns Void and file processing is done asynchronously by an event handler. I believe I need to be able to return the path to the image chosen by the user so that I can then store that value in the database so I can retrieve it later.

Does anybody know how to get the filename back to the calling function? Alternatively, is there another paradigm I could follow for getting the file?

I’ve been trying to find a way past this since yesterday. Your help would be greatly appreciated.
