Attaching file through API

How can I upload a file to ERPNext and attach it to a document through an API?

This thread should help -

3 Likes

This solved it… thank you.