Help

Re: API: Uploaded attachment types are wrong

Solved
Jump to Solution
405 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Jed_Davidow
6 - Interface Innovator
6 - Interface Innovator

I have successfully gotten airtable to upload a PNG and a PDF from Dropbox.

But when airtable processes the file, the type is listed as text/html

If I include a type field, I get an error:

{
	"fields": {
		"Type": "Test",
		"Comment": "",
		"Attachments": [
			{
				"url": "https://www.dropbox.com/s/XXXXXXX/robots.png?dl=1",
				"type": "image/png"
			}
		],
		"User": "",
		"Part": [
			"recFI6JhdkwTCeB9q"
		]
	}
}

And I receive this:

{
	"error": {
		"type": "INVALID_ATTACHMENT_OBJECT",
		"message": "Invalid attachment object for field Attachments: {\n  \"url\": \"https://www.dropbox.com/s/XXXXXXXX/robots.png?dl=1\",\n  \"type\": \"image/png\"\n}"
	}
}

But if i just strio out the “type” there is no error, just the type is wrong.

20 Replies 20
r_s
5 - Automation Enthusiast
5 - Automation Enthusiast

I having the same issue, but submitting from Google Drive via POST to webhook.

File uploads but as 'text/html'  -- this is the closest post I have found to my situation, with our only difference seemingly being dropbox v. google.  

I did make a separate thread about this, im just cruising around the forums too, putting up signal flares in hopes of a rescue.