Errors when I upload via copy files

Why didn’t you use Row_Inserting server event instead?Here is for your reference: How to rename multiple files and displayed it vertically (v2022). It should work either for v2023. Please CMIIW.