I found it but the upload file dialogue box is confusing. It says the file name is optional, but if I don't enter a name then it appears in the post as blank.
how upload pictures use write api ?
Locked NodeBB Plugins
Please check out associated topic: https://community.nodebb.org/topic/11830/api-write-plugin-upload-a-valid-login-session-was-not-found/9