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

Skip to content
Snippets Groups Projects

Fix InvenioRDM draft file upload

Merged Moser, Maximilian requested to merge mm/upload-fix into main
  1. Oct 28, 2024
    • Moser, Maximilian's avatar
      Bump version to v0.3.2 · af9da2bb
      Moser, Maximilian authored
      af9da2bb
    • Moser, Maximilian's avatar
      Fix InvenioRDM draft file upload · e2103526
      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
Loading