The following example shows a HTML form with an input element of type file. The “enctype” attribute of a HTML form specifies the kind of content, and therefore the type of encoding, of the data set to be transmitted to the server.
File to send:
<input type="file" name="the_file"><br>
<input type="submit" value="Send file">
In the target Biferno script a variable, with name "the_file", of the multipart class is associated to the form input element of type file.
In the same form cannot be declared two input fields of type "file" with the same name. In that case the target script will return the error: Err_MultipartObjectDuplicated.