CGI / Binary Read

Yennie at aol.com Yennie at aol.com
Wed Feb 6 20:37:25 EST 2002


Well folks,

Of course the answer was all too simple, so hopefully this one will help 
someone someday in archives.
When I use this:

[FORM ENCTYPE="multipart/form-data"]
[INPUT TYPE=FILE]
[INPUT TYPE=SUBMIT]
[/FORM]

Everything goes nuts and I get bogus content-lengths (not even the same value 
each time for the same file).

Give the input tag a name:
[INPUT TYPE=FILE NAME=FILE]

And everything works like a charm.
Figures.

On with scripting, thanks to all those that offered help.
And if you ever try to write a file upload CGI with apache, uh, remember to 
include the NAME tags in your HTML.

Brian



More information about the metacard mailing list