Forum Discussion
EricMohlman
6 years agoQuickbase Staff
We're currently working on updating our API calls to be JSON based, and hope to have those available by the end of the year for general availability. Please keep an eye on our release notes each month for details on this initiative.
In the mean-time, you could utilize the JavaScript SDK here: https://github.com/QuickbaseAdmirer/Quickbase-JavaScript-SDK within your HTML page to upload your files. The official documentation is located here: https://help.quickbase.com/api-guide/filemanagement.html and indicates that data sent to a Quick Base file attachment field needs to base-64 encoded. There's also an example of a base-64 encoded document in the API_AddRecord documentation here: https://help.quickbase.com/api-guide/add_record.html
With all of that in mind, it still seems like your main issue is being based in JSON and converting to XML. A quick google search generated some useful results:
There might also be jQuery libraries that could utilize for this purpose
------------------------------
Eric Mohlman
------------------------------
In the mean-time, you could utilize the JavaScript SDK here: https://github.com/QuickbaseAdmirer/Quickbase-JavaScript-SDK within your HTML page to upload your files. The official documentation is located here: https://help.quickbase.com/api-guide/filemanagement.html and indicates that data sent to a Quick Base file attachment field needs to base-64 encoded. There's also an example of a base-64 encoded document in the API_AddRecord documentation here: https://help.quickbase.com/api-guide/add_record.html
With all of that in mind, it still seems like your main issue is being based in JSON and converting to XML. A quick google search generated some useful results:
- https://tqdev.com/2017-converting-json-to-xml-in-javascript-and-php
- https://goessner.net/download/prj/jsonxml/
- https://www.xml.com/pub/a/2006/05/31/converting-between-xml-and-json.html
There might also be jQuery libraries that could utilize for this purpose
------------------------------
Eric Mohlman
------------------------------