"Cooper, Vickie" <[EMAIL PROTECTED]> wrote on 11/05/2003 07:28:42
PM:
> I have a really simple html page calling a perl script:
> <html>
> <head>
> <title>Upload Form</title>
> <body>
> <h2 align="center">Upload Form</h2>
> <form action="cgi-bin/book.pl" method=POST
> enctype="multipart/form-data">
>
> Please enter choose an image file from your computer.<br><br>
> File: <input type="File" name="imagefile" size="50"><br><br>
> <input type="Submit">
> </form>
> </body>
> </html>
>
> I don't believe it's even getting to the perl script...this hangs for
> awhile and then I get an error message that the "server is not found".
> I'm trying to send images to the perl script to be stored in a directory
> on os/390. My concern is the path that's being sent: c:\myfile.jpg
> The special characters might be a problem in ebcdic. Is there anything
> special that has to be done to send a file from the pc to os/390?
The requirements for uploading ought to be documented
in the documentation that accompanies the web server you are running.
The two suggestions that I can think of at first are: 1) is the
relative URL action="cgi-bin/book.pl" actually going to reach the
script? Would something like action="/cgi-bin/book.pl" help?
2) can an simpler upload be accomplished without the
enctype="multipart/form-data", that is with a MIME type
more appropriate for a single file/part rather than multipart?
Peter Prymmer