APIs & Integrations

BrunoPereira
Miembro

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 Me gusta
2 Respuestas 2
srisanthiya
Miembro

Uploadfile error: Could not determine name from file

Could not determine name from file

Hi . i am new to hubspot . i am aslo facing this issue. any solution about one

{"status":"error","message":"Could not determine name from file","correlationId":"","category":"BAD_REQUEST"}

0 Me gusta
Jaycee_Lewis
Administrador de la comunidad
Administrador de la comunidad

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 Me gusta