Skip to content

cache: file being added may overwrite an existing file #47

@moshee

Description

@moshee

In a pathological case, a file being uploaded that has the same name as an existing file ID-prefixed file may overwrite it before it gets its own ID prepended in cache.Put. Should use a temp location (either in the data directory or in os.TempDir()) prior to prepending the file ID.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions