Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Rename/Validate filename before the file store in file server

2679162Oct 13 2016 — edited Oct 13 2016

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

Comments

ApexBine

I'm not sure if this is the right forum.

Probably apex.oracle.com/vote is a better place for this suggestion.

1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 10 2016
Added on Oct 13 2016
0 comments
406 views