.webm movie is shown in Documents and not in Video

Do you know if the video was sent with desktop or android-dev? The way the file is classified is based on how it is sent, the type is sent from the sender. Core tries to make a good guess about it, though
It was sent from desktop.
still exists in current master...
Probably because desktop doesn't do a good enough job at sending the right type to core
I have tried sending a sample WebM from Wikipedia to myself using the latest DeltaChat Desktop (commit cd2217d385d7f902deb90a9009a9aa45efa47024). Then I saved email to .eml file and decrypted it with gpg -d email.eml. The attachement is Content-Type: application/octet-stream; name="Schlossbergbahn.webm". So the bug is indeed in the Desktop, it does not set the MIME type correctly.
DeltaChat Desktop does not set the optional mime argument of setFile method:
https://github.com/deltachat/deltachat-desktop/blob/b9a5cf2d26200fc7195a204c2ec2f299a0c73c12/src/main/deltachat/messagelist.js#L9
deltachat-core-rust then tries to guess MIME type based on extension, but it only recognizes .png, .jpg, .jpeg, .jpe and .gif:
https://github.com/deltachat/deltachat-core-rust/blob/8a0fc609e6c1aa61947ee9fa965d87b104b6a716/src/dc_mimefactory.rs#L1209-L1226
The solution is probably to add proper MIME type support to DeltaChat Desktop and manually set the second argument of setFile, because there are cases when file extension may be incorrect or unavailable, for example if the file is pasted from the clipboard.
Could someone check if this still is broken?
@pabzm Just tried, sent the same Webm from wikipedia to myself, it goes into documents.
I have opened https://github.com/deltachat/deltachat-core-rust/pull/1142 as a workaround. Well, it is still useful, but proper MIME type recognition would also be nice.
/close Fixed by deltachat/deltachat-core-rust#1142
Most helpful comment
DeltaChat Desktop does not set the optional mime argument of
setFilemethod:https://github.com/deltachat/deltachat-desktop/blob/b9a5cf2d26200fc7195a204c2ec2f299a0c73c12/src/main/deltachat/messagelist.js#L9
deltachat-core-rustthen tries to guess MIME type based on extension, but it only recognizes.png,.jpg,.jpeg,.jpeand.gif:https://github.com/deltachat/deltachat-core-rust/blob/8a0fc609e6c1aa61947ee9fa965d87b104b6a716/src/dc_mimefactory.rs#L1209-L1226
The solution is probably to add proper MIME type support to DeltaChat Desktop and manually set the second argument of
setFile, because there are cases when file extension may be incorrect or unavailable, for example if the file is pasted from the clipboard.