Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
moshee opened this issue Dec 19, 2022 · 0 comments
Open

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

moshee opened this issue Dec 19, 2022 · 0 comments
Assignees

Comments

@moshee
Copy link
Owner

moshee commented Dec 19, 2022

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.

@moshee moshee self-assigned this Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant