Files with duplicated filenames share the same on-disk resource and collide #111

Open
opened 2024-01-04 19:04:41 +00:00 by mcataford · 0 comments
mcataford commented 2024-01-04 19:04:41 +00:00 (Migrated from github.com)

Description

Because of the way the file destination path is built, uploading a file twice will lead to two items in the UI and in the database, but a single item on disk. This is because uploaded files are not prefixed in any way.

Users should be able to upload a file more than once without colliding and file duplicates should be distinct on disk.

# Description Because of [the way the file destination path is built](https://github.com/mcataford/rotini/blob/cd8ac308d19c1a4c9a7acccea63947e1936afe4d/backend/rotini/files/views.py#L68-L70), uploading a file twice will lead to two items in the UI and in the database, but a single item on disk. This is because uploaded files are not prefixed in any way. Users should be able to upload a file more than once without colliding and file duplicates should be distinct on disk.
This repo is archived. You cannot comment on issues.
No milestone
No project
No assignees
1 participant
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: marc/rotini#111
No description provided.