Uploads all files sent to the page in an HTTP request to a directory on the server.
fileUploadAll(destination [,mimeType] [,onConflict] [,strict] [,continueOnError] [,errorVariable] [,allowedExtensions])
→ returns array
true: The first few bytes of the uploaded file are used to determine the MIME type.
false: The MIME type provided by the browser in the request payload is used.
REASON - The reason for the failure
DETAIL - File upload failure detail
CLIENTFILEEXT - Extension of the uploaded file on the client system (without a period)
CLIENTFILENAME - Name of the uploaded file on the client system (without an extension)
INVALID_FILE_TYPE - If the file mime type or extension is not in the specified accept attribute. If the reason is INVALID_FILE_TYPE, two additional keys will be available in the structure.
ACCEPT: list of mime types or file extensions given in the tag
MIMETYPE: mime type of the uploaded file
EMPTY_FILE - If the uploaded file is an empty file
FILE_EXISTS - If any file with the given name already exists in the destination and the overwritepolicy is error
DEST - The destination where file is copied
FORM_FILE_NOT_FOUND - If the uploaded file is not found on the server
* (star) to allow all files, except where you specify the MIME type in the accept attribute.