in reply to Uploading Files (Win32)

The problem I'm having is that when the local file on the WinXP client is written to the server it is always 0 (zero) length i.e. the filename gets created but no data gets written to the remote file.
So the file is created, it's just that it's zero length after upload. This means there are no problems with paths/directories. I think the Anonymous Monk forgot to specify that it's the multipart form. I forgot about this a few days ago myself ;-)

Replies are listed 'Best First'.
Re: Re: Uploading Files (Win32)
by Anonymous Monk on Feb 06, 2003 at 17:37 UTC

    Heidegger,

    Thanks for your response. Here is the HTML code for the form.

    <form action="filemngt_upload_file.pl" method="get" enctype="multipart +/form-data"> <strong>File to uploaded?</strong> <input type="file" name="UPLOADFILE" size="30"> <input type="submit" value="Upload File"> <input type="reset" value="Clear"> </form>

    I think the above is OK. You might notice I am using 'get' instead of 'post'. This is because 'post' causes my program to lock on the server - ISP has been unable to offer an explanation as yet!.

    Thanks

    Eoin

      You emphatically CANNOT use get with a multipart form, especially one that contains a file upload, you must use post.

        Jason

        Thanks for your comments (and to everybody else who) helped me

        I switched ISP, changed the 'get' to 'post' and the file upload is working now

        Thanks

        Eoin