Fix InvenioRDM draft file upload
- Oct 28, 2024
-
-
Moser, Maximilian authoredaf9da2bb
-
Moser, Maximilian authored
* wrap the file IO in a context manager to close it once it's not needed anymore * call `set_content()` only on the file in question, not all files for the draft (that have likely already been committed) * override the `_data` property of the outgoing stream to prevent the requests library from doing its magic
e2103526
-