# Post URL Variables through FileUploader

**URL:** https://forum.kirupa.com/t/post-url-variables-through-fileuploader/253974
**Category:** flash
**Created:** [March 6, 2008, 10:24pm UTC](https://forum.kirupa.com/t/post-url-variables-through-fileuploader/253974 "2008-03-06T22:24:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![apexonelove](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@apexonelove](https://forum.kirupa.com/u/apexonelove)
#### Post date: [March 6, 2008, 10:24pm UTC](https://forum.kirupa.com/t/post-url-variables-through-fileuploader/253974/1 "2008-03-06T22:24:53Z")

</div>

I’m working on a file uploader that needs to pass a few variables to the php that will post. I’ve seen how the var posts work if it’s a form, but this one’s a little tricky. Here’s the uplaod fiunction I’m got so far:

```auto

var allTypes:Array = new Array();
allTypes.push();

var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);

upload.onRelease = function()
{
    fileRef.upload("upload.php?ID=100");
}

```

How could i make the “ID” section the URL variable? Any help would be absolutely amazing!
