renaming files with dropzone #1037
-
Quoting https://backpackforlaravel.com/docs/6.x/crud-fields#dropzone-pro :
So in https://docs.dropzone.dev/configuration/basics/configuration-options there's a I thought maybe this would work but it didn't:
For that matter I'd like to be able to preserve whatever extension the uploaded file had but it's not clear to me how to do that either altho I suppose that might be a question better suited for the dropzone devs. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you are using Backpack uploaders, we do the file naming in PHP, so whatever you set in javascript will be overwritten when the file is uploaded. You can configure the file name with: https://backpackforlaravel.com/docs/6.x/crud-uploaders#naming-files-when-using-uploaders-1 Let me know if that helps. Cheers |
Beta Was this translation helpful? Give feedback.
Hey @prescriptionlifeline
If you are using Backpack uploaders, we do the file naming in PHP, so whatever you set in javascript will be overwritten when the file is uploaded.
You can configure the file name with: https://backpackforlaravel.com/docs/6.x/crud-uploaders#naming-files-when-using-uploaders-1
Let me know if that helps.
Cheers