Forum Discussion
DeanFX
5 years agoMember
Hi Ben,
I just noticed my synatx may be a bit misleading in the sample i showed. I wrapped the fields with {{ & }} as they appear as a placeholder in the MYOB dev documentation.
However, the actual syntax should be:
{
"Attachment":
{
"OriginalFileName": "test.jpg",
"FileBase64Content": "base64.encoded_file_string"
}
}I'm by no means a CURL programmer, but the above is the syntax i use with no issues.
Hope this helps.
Viital
5 years agoContributing User
Thanks Dean. I really appreciated.
I have managed to get the upload working perfectly.
Looking for something else?
Search the Community Forum for answers or find your topic and get the conversation started!
Find technical support and help for all MYOB products in our online help centre
Dig into MYOB Academy for free courses, learning paths and live events to help build your business with MYOB.