You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We had a bug where a file upload was rejected by our backend, and tracked it down to mmmagic classifying a docx file uploaded by a user as application/octet-stream, while my system's file command correctly detects it.
There are two things here:
If I use the MAGIC_CONTINUE flag, it returns [ '', 'application/zip', 'application/octet-stream; charset=binary' ], so when not using this flag one could expect application/zip, but we get application/octet-stream which is both less specific and appears later in the list, so it seems a bit strange to me. Don't know if it's the upstream file behaviour or if there's something wrong with the js code here.
It would be great if you could upgrade the file version distributed here. Currently it's 5.32 and I have 5.40 installed on my system. Apparently the docx detection got better, and I guess a bunch of other improvements too. I don't know if the build changes much between releases, but hopefully it's just a version bump ?
We had a bug where a file upload was rejected by our backend, and tracked it down to mmmagic classifying a
docx
file uploaded by a user asapplication/octet-stream
, while my system'sfile
command correctly detects it.There are two things here:
MAGIC_CONTINUE
flag, it returns[ '', 'application/zip', 'application/octet-stream; charset=binary' ]
, so when not using this flag one could expectapplication/zip
, but we getapplication/octet-stream
which is both less specific and appears later in the list, so it seems a bit strange to me. Don't know if it's the upstream file behaviour or if there's something wrong with the js code here.file
version distributed here. Currently it's 5.32 and I have 5.40 installed on my system. Apparently the docx detection got better, and I guess a bunch of other improvements too. I don't know if the build changes much between releases, but hopefully it's just a version bump ?It so happens that the file is publicly available, which allows me to share it : https://www.hetsl.ch/cv/romain-bertrand/cv.docx
The text was updated successfully, but these errors were encountered: