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

Handle duplicate file uploads. #59

Open
uawasth2 opened this issue Jan 25, 2021 · 1 comment · May be fixed by #183
Open

Handle duplicate file uploads. #59

uawasth2 opened this issue Jan 25, 2021 · 1 comment · May be fixed by #183
Labels
bug Something isn't working P0 High Priority
Milestone

Comments

@uawasth2
Copy link
Contributor

update frontend and backend code to prevent files with duplicate names from being uploaded.

@mattwalo32 mattwalo32 added the P0 High Priority label Jan 27, 2021
@mattwalo32
Copy link
Collaborator

Instead of immediately adding the filename, we could submit the post request to upload the file, then check if there's already any other existing files with the same name. Then add _1 or _2, etc to the end of it to prevent duplicate file names. The frontend can use the response of the endpoint to get the name of the file. I.e. the backend has final say over file names.

@mattwalo32 mattwalo32 added this to the Week of 4/20 milestone Apr 12, 2021
@gwang0136 gwang0136 linked a pull request Apr 20, 2021 that will close this issue
2 tasks
@suewee suewee self-assigned this Dec 21, 2021
@mattwalo32 mattwalo32 added the bug Something isn't working label May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P0 High Priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants