Saturday, July 04, 2020
grimoire@muc.metronome.im
July
Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4
5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
             
Metronome IM "cook" book room | Support and Dev talk about the Metronome XMPP server.

Latest stable version build is: 4.0.3

For more information you can visit: https://metronome.im

Room logs can be found here: https://muc.metronome.im/logs/grimoire/

* Links *
<==========================================================>
- Building & Installation:
https://metronome.im/building
- Documentation:
https://metronome.im/documentation
- Issues Tracker:
https://github.com/maranda/metronome/issues
<==========================================================>

[05:34:55] <leandro> Hello
[05:35:19] <leandro> I have a question about http_upload
[05:35:47] <leandro> I am using metronome on a yunohost installation
[05:37:02] <leandro> If I try to send a file that it is not an image, for example e pdf file, I get an error
[05:37:34] <leandro> I remember something about file type allowed but I cannot find where to define this option
[06:58:51] <Maranda> http_file_allowed_mime_types: specify allowed mime types for uploads you have to specify both the
extension and the mime using this format: { ["txt"] = "text/plain", ["png"] = "image/png" }
[06:59:20] <Maranda> https://aria-net.site/Shared%20Documents/Metronome%20IM/General%20Metronome%20Directives.pdf
[07:10:09] <leandro> Maranda, where I have to set these directives? In my yunohost setup I cannot find
[07:18:44] <Maranda> Into /etc/metronome/metronome.cfg.lua
[07:21:26] <Maranda> Set it into the global section
[07:35:35] <leandro> Maranda, ok, I am looking for some examples to follow in documentation
[07:49:33] <leandro> Maranda, it works, adding a simple line like "http_file_allowed_mime_types = { ["txt"] = "text/plain", ["png"] = "image/png", ["jpg"] = "image/jpg", ["pdf"] = "application/pdf" }"
[07:49:33] <leandro> Maranda, thanks!
[07:50:29] <Maranda> Np