Conversation
Notices
-
Embed this notice
iwojima (iwojima@clubcyberia.co)'s status on Wednesday, 13-Sep-2023 08:05:02 JST iwojima @iwojima @silverpill
>>No it can't, there's a whitelist of media types. Do other servers allow text files?
yep, pleroma for ex
but i see that attach not in json:
-----------------------------319522747218710253373511617048
Content-Disposition: form-data; name="file"; filename="delta.txt"
Content-Type: text/plain
22kuvdj2unnonqgbv5zrejn2ibvik53jn6bbrqsfe6xliljxqr23qzad.onion
232txpgcxpqvpjgiemymqxio6fkfr55ivbougljau7ncwhmgtv4tixyd.onion
...
-----------------------------319522747218710253373511617048---
Embed this notice
silverpill (silverpill@mitra.social)'s status on Wednesday, 13-Sep-2023 08:04:57 JST silverpill @iwojima @iwojima I don't want to allow text uploads by default but I can make allowed media types configurable
-
Embed this notice
silverpill (silverpill@mitra.social)'s status on Friday, 17-Nov-2023 06:40:58 JST silverpill @iwojima @iwojima With Mitra 2.4.0 you can configure your instance to allow text/plain or any other media type (be careful though, some media types expose users to XSS attacks).
Use configuration option limits.media.extra_supported_types (the value should be an array)
-
Embed this notice