Here is my situation:
I am using AddAttachment to allow student upload file to file server. Since our file server is not accept special character (for example: chinese characters, french characters), it will be cut all the special characters and saved in file server. If the student upload the filename "Test凡是心.docx", the file will be stored in file server as "Test" without all special character and extension. The AddAttachment will return success. I only can validate the filename after the file is stored in file server. If the filename validation fail, I can not use the DeleteAttachment to delete the file in file server because the file name is stored without all special character and extension.
Here is my question:
1) Is it possible to validate the filename before the file is stored?
2) Is it possible to rename the filename before the file is stored?
Thanks
Wing Yee Cheung