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
error
error
skip
overwrite
makeUnique
true
mimeType
parameter.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.
false
cffile.uploadAllErrors
REASON
- The reason for the failureDETAIL
- File upload failure detailCLIENTFILEEXT
- 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 tagMIMETYPE
: mime type of the uploaded fileEMPTY_FILE
- If the uploaded file is an empty fileFILE_EXISTS
- If any file with the given name already exists in the destination and the overwritepolicy is errorDEST
- The destination where file is copiedFORM_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. Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.