# FlashMX File Uploader (cont'd)

**URL:** <https://forum.kirupa.com/t/flashmx-file-uploader-contd/25595>\
**Category:** flash\
**Created:** [July 14, 2003, 8:42pm UTC](https://forum.kirupa.com/t/flashmx-file-uploader-contd/25595 "2003-07-14T20:42:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KaOsX](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@KaOsX](https://forum.kirupa.com/u/KaOsX)\
**Post date:** [July 14, 2003, 8:42pm UTC](https://forum.kirupa.com/t/flashmx-file-uploader-contd/25595/1 "2003-07-14T20:42:19Z")

</div>

Ok, i know now how to setup the whole flash file uploading thing, but now im confused… heres my code…

```php

<script language="JavaScript" type="text/javascript">
function browseFile()
{
document.all['file1'].click();
}
function submitFile()
{
document.form1.upload.click();
}
</script>

<form name="form1" action="mp3upload.php" method="POST" enctype="application/x-url-encoded">
<input id="file1" type="file" size="19">    
<input name="upload" type="submit" size="19"> 
</form>

```

Then i just make the BROWSE button in flash GETURL(“JAVASCRIPT:BROWSEFILE();”); and the same for submit…

and everything works, except in my mp3upload.php script… i dont know what the variable for the file is because theres no NAME="" in the file input. only ID="". But if i add the name="" field then i get JS errors. hmm… any clues?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 14, 2003, 8:43pm UTC](https://forum.kirupa.com/t/flashmx-file-uploader-contd/25595/2 "2003-07-14T20:43:31Z")

</div>

umm , that about: was javascript before i submitted it

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 14, 2003, 9:07pm UTC](https://forum.kirupa.com/t/flashmx-file-uploader-contd/25595/3 "2003-07-14T21:07:31Z")

</div>

ok i have pinpointed the problem… its in my browse file javascript… because if i click the HTML browse button and choose a file, then click the flash upload button, it works, but not if it has anything to do with the flash browse button, so is there a method to browsing other than the one i use?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 15, 2003, 5:26pm UTC](https://forum.kirupa.com/t/flashmx-file-uploader-contd/25595/4 "2003-07-15T17:26:06Z")

</div>

anybody?
