Files that are uploaded using forms in POST requests can be retrieved with the Request method
When uploading files using a POST request, make sure your file upload form has the
getUploadedFiles() will return an empty array.
If multiple files are uploaded for the same input name, add brackets after the input name in the HTML, otherwise
only one uploaded file will be returned for the input name by
Below is an example HTML form that contains both single and multiple file uploads.
Uploaded files can be moved to a directory using the
moveTo method. Below is an example application
that handles the uploaded files of the HTML form above.