Templates Plugins Courses

AWS File Uploader - upload to S3

Please suggest,
How can I replace special characters from file name ?? I have regex to replace but I want a event which allow me to change and send new file name to S3.


Hello, @poonam
Thanks for reaching out.

Unfortunately, but the symbols like space, - _ . ! ~ * ’ ( ) cannot be recognized and encoded by the AWS platform.
In order to prevent the download from being canceled, all invalid characters are replaced by “%”.
The plugin returns you not the name of the file from the bucket, but the original name of the file.
Please check this documentation in case of necessity: encodeURIComponent() - JavaScript | MDN

In case if you are willing to rename the files in the S3 bucket after the files will be uploaded, it is possible only manually.

In case I can help you with any additional information - please let me know.
Best regards,