Can we upload a local file to a dataset?

Here the docs say we can directly upload a file to a dataset, but I tried just giving the absolute file path and it didn’t work:

{'message': "Found invalid contents for media type: 'IMAGE'"}

Is this supported? If so, what might I be doing wrong?

Screenshot from 2023-01-22 11-07-26

Hi @pmitrano,
Thanks for flagging this issue. We do support uploading local files. Currently, uploading local files doesn’t work with our standard import format for cloud-hosted files, and only supports a limited range of features (we will work on that soon).

I have updated the docs with a Python example of uploading local files. Let me know whether it works for you: Import image data

1 Like

Ah yes that worked! Thanks!