Hello there,
For testing reasons I just upgraded to pyBIS 1.35.11 and also installed the module requests-toolbelt. After the upload the files are in the correct dataset, but are not placed in its root. However the original relative path of the file is translated into dataset subfolders. I have not touched my upload function and before the update it worked just fine.
pyBIS 1.35.10 (old - without requests-toolbelt)
pyBIS 1.35.11 (new)
def data_upload():
ds_new = o.new_dataset(
type='ATTACHMENT',
sample=identifier,
files=['Users/User/Desktop/file.csv', 'Users/User/Desktop/file.html', 'Users/User/Desktop/file.png'],
props={'$name': 'CSV and Graph'}
)
ds_new.save()
Maybe I missed some new code requirements for the updated dataset upload function.
Best regards,
Steffen