Railo 4.2 Reference
Choose a function:


Uploads file to a directory on the server.


fileupload(string destination,[string fileField,[string accept,[string nameConflict,[string mode,[string attributes,[object acl]]]]]]):struct


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.  
fileField string  No Name of form field used to select the file.  
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 object  No only used for S3 Resources