Why renaming uploaded files ? #307
-
Hello, Thanks for your answer. NB : is there a way to build my own function to disable renaming ? |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 6 replies
-
@squarou just write your own You can check original function here: https://github.com/Laravel-Backpack/CRUD/blob/91a8093ad1e55ad329d74994eaa2ed943fb0ec6a/src/app/Models/Traits/HasUploadFields.php#L76 |
Beta Was this translation helpful? Give feedback.
-
To provide more insight into our reasons to do this by default - personally I think that's what 99% of the devs should be doing, because:
I think it's one of those things that's super-simple to do, and prevents problems down the line. |
Beta Was this translation helpful? Give feedback.
@squarou just write your own
uploadMultipleFilesToDisk
in your model.You can check original function here: https://github.com/Laravel-Backpack/CRUD/blob/91a8093ad1e55ad329d74994eaa2ed943fb0ec6a/src/app/Models/Traits/HasUploadFields.php#L76