@nikolal
Otherwise it just works over HTTP - an attachment that is not an image/video/audio (which are displayed inline in Riot) will be just opened in the web browser as a regular link on your server and downloaded.
@rysiek