APIs & Integrations

BrunoPereira
Member

Uploadfile error: Could not determine name from file

Hi there ! I'm working on a integration with Hubspot that intends to upload a .pdf file. After lots of search, I failed epically.

I'm using node-red, that uses js.

Bellow, some sample of my request code:

 

{
	"file": {
		"file": "[binary_pdf_file]",
		"fileName": "ResultadoSimulacao_6478029_0382022.pdf"
	},
	"folderPath": "/propostas",
	"options": {
		"access": "PUBLIC_INDEXABLE",
		"overwrite": true,
		"duplicateValidationStrategy": "NONE",
		"duplicateValidationScope": "EXACT_FOLDER"
	}
}

{
	"folderPath": "/propostas",
	"options": {
		"access": "PUBLIC_INDEXABLE",
		"overwrite": true,
		"duplicateValidationStrategy": "NONE",
		"duplicateValidationScope": "EXACT_FOLDER"
	},
	"file": "[binary_pdf_file]",
	"fileName": "ResultadoSimulacao_6478029_0382022.pdf"
}

 

 
I've tried different approaches, such :
 
- send a binary string from pdf file
- send a buff array from file
- tried to set file name inside binary, but I couldn't find examples
 
Anyone gots any ideas ? I'm kinda in depair. Thansk anyway for, at least, read my question !
0 Upvotes
1 Reply 1
Jaycee_Lewis
Community Manager
Community Manager

Uploadfile error: Could not determine name from file

Hi, @BrunoPereira 👋 Hey, @jpsanchez @louischausse @DanielSanchez do you have any experience or thoughts on next steps for @BrunoPereira?

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes