Comment on Partially incorrect MIME type detection for files newly uploaded to the cloud

<- View Parent
mario@hub.somaton.com ⁨1⁩ ⁨week⁩ ago
@Der Pepe (Hubzilla) ⁂
What could be done to ensure that CSS is recognised correctly and entered into the table?

Maybe file an issue to libmagic?

I would rather not rely on file endings to determine the file mime type. We could possibly make an excemption for channels that have code right so that in that case if text/plain is returned from finfo() we compare it to the previously provided mimetype and if it is not the same, revert to the provided one. But i actually do not like this hack!

original
Sort:hotnewtop