Sending Text Parameters with "Form Data" API Calls for PDFs

Hi,

I’m trying to upload a PDF from Bubble to the Document Store in Flowise, using the API connector, and I need to include the Pinecone namespace as a text parameter to store it correctly.

I’m currently using “body-type: form data” for PDFs, and while the data reaches Pinecone, it doesn’t go to the correct namespace. See image.
I tried both “vectorStore.config.pineconeNamespace” and “pineconeNamespace” without success.

For URLs, I’m successfully sending data with “body-type: JSON” like this:

{
    "docId": "<docId>",
    
     "loader": {
        	"name": "fireCrawl",
        	"config": {
            	"url": "<url>"
    				}},
        
      "vectorStore": {
        "config": {
        "pineconeNamespace": "<nameSpace>"
        }}
}

Am I missing something for PDFs? Any advice is appreciated!

Try vectorStore[config][pineconeNamespace]

1 Like

Thanks a lot! It worked :clap:t3:

1 Like

@romanmg do you know if it’s possible to send more than one PDF in the same call? I’m sending only one at the time but it would be great if its possible to send more than one.

Based on the parameter ID being “files” (plural), I would say yes. But, you may need to change your body type to JSON instead of Form-data so you can control the parameter values with more granularity (i.e. dynamic list of files).

You’d want to put all your parameters here:

Then, when you have the action in the workflow, you’ll be able to fully edit the JSON. For the “files” parameter, you can try:

“files”: [
Files URLs :formatted as text
]

And within the “formatted as text” window, you’ll see 2 multi-line windows. The first would have:

“this Files URL’s value” (something like that)

The second is for your list delimiter, so you can just type in a comma.

I’m making a few assumptions here, and I’m not sure what your “split by #join…” is all about, but this is the direction I’d try.

1 Like

Thanks, I’ll try this