# Upload file with java and perl

**URL:** <https://forum.kirupa.com/t/upload-file-with-java-and-perl/24618>\
**Category:** programming\
**Created:** [July 2, 2003, 8:47pm UTC](https://forum.kirupa.com/t/upload-file-with-java-and-perl/24618 "2003-07-02T20:47:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![waffe](https://avatars.discourse-cdn.com/v4/letter/w/c37758/32.png) [@waffe](https://forum.kirupa.com/u/waffe)\
**Post date:** [July 2, 2003, 8:47pm UTC](https://forum.kirupa.com/t/upload-file-with-java-and-perl/24618/1 "2003-07-02T20:47:41Z")

</div>

I am asking this question here at Kirupa because I really feel the problem I am having is coming from flash.

Ok, I am uploading files to a server with a perl script. I know the perl script works because when I use an html browse and submit button form the uploading process works just as it should. I do not want to use the html upload form because I would rather keep my page all in flash. So I found this web site with an example of how flash and java can do the trick. Check it out here.  
[http://website.lineone.net/~mitsos/site/flash/tutorials/upload/](http://website.lineone.net/~mitsos/site/flash/tutorials/upload/)

Here is the problem in my flash file. I select the browse button and then select a file and hit open. The text box in flash populates with the path to the file and file name. I then select submit button to upload the file. When I look in the server the file is there but it is 0kb. When I do this from the html form all works.

Anyone have any ideas?

---

<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 3, 2003, 1:53am UTC](https://forum.kirupa.com/t/upload-file-with-java-and-perl/24618/2 "2003-07-03T01:53:51Z")

</div>

I would just create a separate part for uploading, no need to do it in Flash.

[http://robouk.mchost.com/tuts/tutorial.php?tutorial=fileupload](http://robouk.mchost.com/tuts/tutorial.php?tutorial=fileupload)

your code is missing something, but I don’t know how to do it with PERL. I would use PHP.
