Remove the random suffix from uploads #11

Open
opened 2025-10-29 09:33:26 +00:00 by boyska · 1 comment
Owner

We save files with a random suffix, to avoid conflicts. But we don't need to upload those files the same way. We can use the intended file name.

We save files with a random suffix, to avoid conflicts. But we don't need to *upload* those files the same way. We can use the intended file name.
Author
Owner

This requires a change to the interface of uploader.UploaderBackend subclasses: def copy now need to have a second parameter, of type database.Original.name. That will allow ArchiveBackend.copy to use name, instead of filename.name, as the destination bucket and filename.

This requires a change to the interface of `uploader.UploaderBackend` subclasses: `def copy` now need to have a second parameter, of type `database.Original.name`. That will allow `ArchiveBackend.copy` to use `name`, instead of `filename.name`, as the destination bucket and filename.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
techbloc/caricari#11
No description provided.