Forum Stats

  • 3,875,449 Users
  • 2,266,916 Discussions
  • 7,912,218 Comments

Discussions

Rename/Validate filename before the file store in file server

2679162
2679162 Member Posts: 1
edited Oct 13, 2016 4:01PM in Oracle Help Technologies

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

This discussion has been closed.