Hi,
I’m trying to upload a file with the bubble API.
I’ve a data Type called ‘Document’ with a field ‘document_file’ which is a field of type file.
I’m doing a post request with postman on the data type api and giving a json object as a value for the key ‘document_file’.
Here is my json object :
{"filename":"pixel.png", "contents":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==","private":false}
But each time the response is
"body": { "status": "INVALID_DATA", "message": "Invalid data for field document_file: not a valid url or object" }
Am I missing something ? please help. Also I can’t pass an URL so I need to use this method.
Many thanks