Passing Files into Pinecone Assistant File Upload API

Hello,

I am using Pinecone’s new Assistant feature through their API and I am trying to add a file.

It works when I manually select a file but I need to pass the full file in somehow to the API. Right now the only way I can add a file is to manually select it in the setup but this wont work when a user is uploading their own files.

On my page I added a file uploader so when a button “upload” is clicked, the file uploader’s value, which is a file, is dynamically passed on to the API - this does not work unfortunately. Only when I ad a static file does it actually upload.

Any ideas on how I can fix this? Thank you in advance for your help!

How is this being triggered? You will want to do “Input’s value has changed” event and pick the file uploader so it doesn’t try to run the workflow before the file is ready. The Dynamic link you can reference This FileUploader's value Also check make sure the file uploaded isn’t private.

I think you have to add http: or something before the link, pretty sure the value is //dsfaljlkjdf.file

Wish this was better documented.

2 Likes

Amazing, thank you, adding http: before the file upload did the trick, thank you very much for your help!

2 Likes