API: Uploaded attachment types are wrong

Topic Labels: API
Jump to Solution
8341 20
Showing results for 
Search instead for 
Did you mean: 
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": "",
				"type": "image/png"
		"User": "",
		"Part": [

And I receive this:

	"error": {
		"message": "Invalid attachment object for field Attachments: {\n  \"url\": \"\",\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
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.