Example   Source
  Menu  | 
 |  Run as  
The name of a file can be modified as part of the upload process by using the onBeforeFileUploadValidate event to supply a custom file name. In this example the file name is suffixed with a numeric timestamp to ensure the uploaded file name is unique and will not overwrite an existing file. The event onFileUploaded is also used to provide a default description based on the file name. In addition the sample also demonstrates use of the uploadSubFolder property which allows a folder name to be stored along with the file name in the database.