Open
Description
I'm trying to rename files before uploading to S3, using:
dropzoneOptions: {
renameFile (file) {
file.name = new Date().getTime() + '_' + file.name; // results in Uncaught TypeError: Cannot assign to read only property 'name' of object '#<File>'
// or
file.upload.filename = new Date().getTime() + '_' + file.name; // results in Uncaught TypeError: Cannot set property 'filename' of undefined
}
}
Is it even possible to rename files before they get uploaded to S3? Or this there another way to avoid files with the same name from being overwritten in S3?
Metadata
Metadata
Assignees
Labels
No labels