metalnx-web icon indicating copy to clipboard operation
metalnx-web copied to clipboard

file type should be determined by MIME type, rather than by file extension

Open bh9 opened this issue 4 years ago • 1 comments

icp test test.txt produces test.txt identical to test, but because metalnx is interpreting the file extension, it deems these files different, test is application/octet-stream and test.txt is text/plain, this in turn means that test, a plaintext file, cannot be previewed but yet test.txt can

bh9 avatar Mar 16 '20 13:03 bh9

[most UN*X platforms have the file utility, for example, which does this]

mcv21 avatar Mar 16 '20 13:03 mcv21