<form method="post" enctype="multipart/form-data" accept="text/plain" action="http://users.cs.dal.ca/~jamie/cgi-bin/3172/form/upload.cgi"> <p> <input type="file" name="upload" size="60" /> <br /> <input type="submit" name="submit" value="upload file" /> </p> </form>
Note that
enctype
attribute must be multipart/form-data
to tell the server that there are multiple sections in the input.
method="post"
since
there are two sections to the input, and method="get"
can only do one.
accept
attribute may be used to limit which types
of files can be sent.