Forum Discussion
NathanHawe
5 years agoQrew Cadet
Yes, attachments can be added and updated using the upsert endpoint but the "value" object for the field has a different shape than other data types. Instead of:
------------------------------
Nathan Hawe
------------------------------
{ "6": { "value": base64EncodedFile }}
it expects:{ "6": { "value": { "fileName": "filename.pdf", "data": base64EncodedFile } } }
If you look at the file attachment section for the file type details (https://developer.quickbase.com/fieldInfo ) you'll find their example for the record create endpoint.
------------------------------
Nathan Hawe
------------------------------
AngelRodriguez
5 years agoQrew Assistant Captain
Awesome, thank you! I completely missed that part of the documentation. That worked for me, too.
------------------------------
AR
------------------------------
------------------------------
AR
------------------------------