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

Exception: filename collision: when uploading remote-files with the same basename #1250

Open
hoshimura opened this issue Mar 11, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@hoshimura
Copy link

I would like to see a change in how remote-files are saved locally, preferably using a checksum over the file content or similar.
I am uploading files from a remote where the basenames sometimes are the same and with the currently implementation of _download_data in cvat/apps/engine/task.py the upload fails with a filename collision even though the files themselves are different.
Using a checksum over the file would additionally allow reuse of the uploaded data over different tasks/jobs if desired.

@nmanovic
Copy link
Contributor

It was already requested by another user to save such images with full url path or something like that (http://example.com/a/b/mypic.png -> /example.com/a/b/mypic.png). Probably we can provide a parameter into REST API to follow the approach.

@hoshimura
Copy link
Author

Alright. Sounds like a way forward!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants