Getting the file size of attachments added to posts through the API

Hi @pfaffman

I’m part of Exalate - we provide an integration solution allowing to build bridges between various systems. We are currently building an integration allowing to insert the discourse interactions with our own backend system. One of the requirements whenever we provide an attachment on the other side, is that a filesize is provided.

I solved the problem now by getting the file, without streaming it (I hope that it is ok for the discourse backend). The header contains the necessary information such as mimetype and filesize.

It would be nicer to have an explicit REST endpoint, but there is a workaround, so all good.

Francis