Absolute pathname of directory or file on web server.
fileField
string,
optional
Name of form field used to select the file.
accept
string,
optional
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.
Alias:
mimeType
nameConflict
string,
optional
Action to take if filename is the same as that of a file in the directory.
skip
error
overwrite
makeunique
forceunique
Alias:
onConflict
strict
boolean,
optional
true (default), only mimetypes are supported in the accept attribute.
if set to false, it supports file extension/mimetypes in the accept attribute
allowedExtensions
any,
optional
String list or string array of allowed extensions.
Introduced: 6.0.0.12
blockedExtensions
any,
optional
String list or string array of not allowed extensions.
Introduced: 6.0.0.12
mode
string,
optional
Applies only to Solaris and HP-UX. Permissions. Octal values of UNIX chmod command. Assigned to owner, group, and other, respectively.
attributes
string,
optional
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.