*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content

Fix InvenioRDM draft file upload

Moser, Maximilian requested to merge mm/upload-fix into main
  • 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

Merge request reports