Trying to upload a file with http://nationbuilder.com/page_attachments_api thru the oauth library, and getting error that the request uri is too long. I used encoder such as http://www.freeformatter.com/base64-encoder.html and got a ridiculously long string.
content - Base 64 encoded representation of the file, with standard RFC 4648
Am I doing something wrong? Does "representation of the file" means an encoded version of the file? or it means url to the file or some other kind of representations?
Any helps/hints are appreciated.
Submitted
Official response fromThank you for your question.
In this case, you want to include the payload in the POST body as JSON, not in the URI as a query parameter. Although it might seem like both styles are equivalent, URI query parameters are more restrictive.
Showing 5 reactions
Sign in with
Thank you.
Hope that helps.