# Load variables from popup script/file upload

**URL:** https://forum.kirupa.com/t/load-variables-from-popup-script-file-upload/299899
**Category:** Uncategorized
**Created:** [November 12, 2009, 11:03am UTC](https://forum.kirupa.com/t/load-variables-from-popup-script-file-upload/299899 "2009-11-12T11:03:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Marion\_B](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@Marion\_B](https://forum.kirupa.com/u/Marion_B)
#### Post date: [November 12, 2009, 11:03am UTC](https://forum.kirupa.com/t/load-variables-from-popup-script-file-upload/299899/1 "2009-11-12T11:03:19Z")

</div>

I’ve searched, but I don’t believe flash (actionscript 2.0) itself offers a “select filefield” and fileupload functionality?

That’s why my swf has a button which opens a popup window. In the window the user has the ability to upload a file to the server. That’s no problem.

But I would like to send the filename back from the popup to the swf. How on earth can I manage that?

I can’t use Loadvars.sendAndLoad in the swf because then my visitor does not see a popup and can’t select the files.  
Loadvars.load doesn’t work in popup?

Any ideas would be very highly appreciated, because I’m very stuck. Is it possible?
