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!
Learn, solve, grow
Level up your skills and find answers across all MYOB products