Use file picker to upload local files

Options
Xano Support Chat
Xano Support Chat Administrator

ADMIN

edited January 2023 in ❓Other questions

The problem is with uploading local files from PC to Xano API. I am able to use the file picker to upload the same file, but when I try specifying the path to the file, it gives me the below error. I can specify a web file and it works OK. I need to be able to upload a local file to the database via the API.


Best Answer

  • Xano Support Chat
    Xano Support Chat Administrator

    ADMIN

    edited January 2023 Answer ✓
    Options

    To use a local file, you will need to use the file picker. The file resource input type in the JSON body will only support an image URL or a base64 encoded image URL. Putting a local file path in the JSON body is not supported.