home *** CD-ROM | disk | FTP | other *** search
- <RC$title = Upload File>
- <RC$navurl = /samples/index.stm>
- <RC$navname = Samples>
- <RCinclude /header.stm>
- <BR>
- <font size=5><B>Sample File Upload Form</B></font>
- <P>
- This page allows you to upload a file. Note that the Sambar
- Server limits the size of POST content to around 50k (so that
- the server doesn't get swamped with data). This parameter
- is configurable in the <I>config.ini</I> file (<B>Maximum Content-Length</B>).
- Only localhost (127.0.0.1) is permitted to upload scripts
- (see cgi-bin/upload.pl to customize this).
- <P>
- The file upload form looks just like any other form except that:
- <UL>
- <LI> The form tag must specify the <tt>POST</tt> method
- <LI> The form tag must specify an enctype of <tt>multipart/form-data</tt>
- <LI> The form must contain an <tt><input type=file></tt> element.
- </UL>
- <P>
- You can do a view source on this document to see all the elements.
- Uploaded files are placed in the <A HREF="/upload/">upload</A> directory.
- <P>
- <HR>
- <H2>File Upload Form</H2>
-
- <FORM method=POST action="/cgi-bin/upload.pl" enctype="multipart/form-data">
- <TABLE border=0 cellpadding=5>
- <TR>
- <TD>File to upload</TD>
- <TD><input type=file size=60 name=upfile></TD>
- </TR>
- <TR>
- <TD>File name</TD>
- <TD><input type=text value="test" name=upname></TD>
- </TR>
- <TR>
- <TD></TD>
- <TD><input type=submit value=Upload></TD>
- </TR>
- </TABLE>
- <P>
- </FORM>
-
- <RCinclude /footer.stm>
-