How to upload a file via API and get it's URL?

See How to reverse engineer the Discourse API

「いいね!」 2