How can I reference and manipulate the fileName on file type fields?

Kevin_102667 Posts: 56 admin
edited November 2019 in Questions

Use Case: I need to sanitize fileName from file type fields.

For example, if I have a file called test-#%*>?.png, I need to replace the invalid characters (#%*>?) and rename it to test------.png. I can't use File: Rename a file because I need to be able to reference the original fileName.

Best Answer