I've been working on this and hit a problem: my script: 1. Limit uniFileUpload.Filter to only list of available file extentions 2. rename the uploaded file and replace all special characters from the name 3. create a hash of the file 4. Encrypt the file 5. uploading an encrypted file to the server How to execute point 1 to extentions like - jpg,jpeg,xml,txt,csv,xls.  however, in the code created in point 2 to replace characters in MainForm.Script, the file