mease_elabftw.experiments.upload_file

mease_elabftw.experiments.upload_file(experiment_id, filename)

Upload a file to the web service under a specific experiment id.

Parameters
  • experiment_id (int) – The experiment id given by the user.

  • filename (str) – Filename to store on the server.

Raises

RuntimeError – Raise error if upload is not possible.

Returns

The upload id.

Return type

int