Applet: | UploadClient | ||
Description: | Use AllowFiles to allow the upload of files that match a specified expression. Set the value of AllowFiles to one or more expressions. A file's name must match one of the expressions to be transferred to the server; if it does not match, the file will not be uploaded. If at least one file in a multi-file upload matches a value of AllowFiles and is uploaded, JFile will not return an error if it does not accept another file. However, if the AllowFiles value is too restrictive, and no files are uploaded JFile will throw Error 304 No_Files_To_Send_Error. To disable this error (if, for example, you want to receive headers when no files are sent), set ForceSelectFile to 0.
See also RestrictFiles. |
||
Example: | The following will allow the upload of gif and jpg files only: <param name="AllowFiles" value="*.gif,*.jpg"> |