It is possible to create a HTML upload form after RFC1867 and to send the form data in the following multipart message form to the server:
-----------------------------2224084169055 Content-Disposition: form-data; name="upfile"; filename="c:\rfc\rfc2068.html" Content-Type: text/html . . . -----------------------------2224084169055 Content-Disposition: form-data; name="note" Annotation -----------------------------2224084169055--
A CGI program has to take the data and to write it again into a correct file.
With the follwing form Netscape sends a multipart message of the above format to the server when you submit the form.
<form method='POST' enctype='multipart/form-data' action='/cgi-bin/fupload.pl'> File to upload: <input type=file name=upfile><br> Notes about the file: <input type=text name=note><br> <br> <input type=submit value=Press> to upload the file! </form>
The CGI program I wrote handles supplementary the following tasks:
Contact the author to get the upload form CGI script for free.
The new SendFile handler, which is the default request handler of the server has build in capabilities in Pi3Web 2.0 to
Since you can redirect the uploads into a directory the security risk is small. The .note files give the webmaster a history information of all uploads.