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

Files upload with same name #2270

Open
sadiq1971 opened this issue May 14, 2024 · 0 comments
Open

Files upload with same name #2270

sadiq1971 opened this issue May 14, 2024 · 0 comments
Labels
Issue: Bug 🐛 Added to issues relating to a critical severity bugs.

Comments

@sadiq1971
Copy link
Member

Describe the bug
File upload with same name(in same directory) doesn't return conflict error

To Reproduce
Steps to reproduce the behavior:

  1. Go to the app
  2. Upload a file named xyz
  3. Upload another file named xyz with different content
  4. Doesn't return error and the file is not replaced either.

Expected behavior
Backend returns conflict error for the files.
Files upload is a batch operation and if there is conflict error for some files the upload returns all the entries for files and there status whether it got uploaded successfully or failed. UI needs to check the response.
The best way will be

  1. Call check-upload API before uploading and inform user about the conflicting files to re- add files while uploading.
  2. Check the response of the upload and inform about the failed files while uploading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Bug 🐛 Added to issues relating to a critical severity bugs.
Projects
None yet
Development

No branches or pull requests

1 participant