Uploading Files to Discourse

My Discourse server allows me to post only Text. I am running the latest version. It looks like Discourse might support uploading graphics in the form of PNG files. However, I have tried even very small files and I get the error:

sorry, there was an error uploading that file. please try again

I have tried over and over and I will see the same error.

in the error log, I am seeing this error:

MaxMindDB (/var/www/discourse/vendor/data/GeoLite2-ASN.mmdb) could not be found: No such file or directory @ rb_sysopen - /var/www/discourse/vendor/data/GeoLite2-ASN.mmdb

I have loaded phpBB on another server and it does support embedded graphics in a post. After Googling a lot of solutions, it appears that the “files” are legacy and that Discourse only handles text files.

Is that correct or is there a solution to this?

Hi,

  • about the maxmind error in your log, what to do is detailed here: Configuring MAXMIND for reverse IP lookups
  • about the fact that your are not able to upload png, this is not a limitation a discourse, (unless it’s voluntary), something is wrong somewhere :thinking:

Considering the error message I don’t think this is linked to TL (did you try as an admin?), component or authorized extensions (https://your.domain/admin/site_settings/category/files?filter=authorized). Perhaps something on your host is preventing an upload (max size?), what kind of install do you have?

ps. just saw your other post, you can also try to upload something here: https://try.discourse.org/

Did you do a Discourse official Standard Installation?