FUNCTION:FILEUPLOADALL
last edited by
gef
on 03-Oct-2011
fileUploadAll
Description
Uploads file to a directory on the server.
Usage Syntax
fileUploadAll(string destination,[string accept,[string nameConflict,[string mode,[string attributes,[string acl]]]]]): array
Return Information
| Return Type |
| array |
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
| Name | Type | Required | Description |
| destination | string | Yes | Absolute pathname of directory or file on web server. |
| accept | string | No | Limits the MIME types to accept. Comma-delimited list. For example, to permit JPG and Microsoft Word file uploads: accept = "image/jpg, application/msword" The browser uses file extension to determine file type. |
| nameConflict | string | No | Action to take if filename is the same as that of a file in the directory. |
| mode | string | No | Applies only to Solaris and HP-UX. Permissions. Octal values of UNIX chmod command. Assigned to owner, group, and other, respectively. |
| attributes | string | No | One attribute (Windows) or a comma-delimited list of attributes (other platforms) to set on the file. If omitted, the file's attributes are maintained. |
| acl | string | No | only used for S3 Resources |
History
Railo 3.3: Recent releases of Railo only allowed you to upload one single at a time if several files were passed to the server within a form. Now Railo supports the action uploadAll in the tag <cffile> which allows a developer to upload all passed files into a certain directory. The tag creates an array of structures containing the information about the uploaded files. Railo 3.3 now allows you as well to upload a file passed by a form within cfscript by using the functions fileUpload() and fileUploadAll().
SideBar
User Login