PDA

View Full Version : Upload file with java and perl



waffe
July 2nd, 2003, 04:47 PM
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/

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?

Jubba
July 2nd, 2003, 09:53 PM
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

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