-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot upload audio-only .webm file #14453
Comments
Duplicate of #14328 |
@t3chguy Are you sure it's a dupe? That bug is about HEVC video encoding. This one is about an audio-only file, and the problem goes away when the same file has a different name. |
Ah well then it's your browser saying its a video file yet refusing to generate a thumbnail for it i bet, will leave open until I can confirm |
It's Electron, then. This is the desktop app. |
So this is a browser bug where it says the File type for an audio-only webm file is You can try it out yourself here: https://jsfiddle.net/dgw07tjh/1/ This boils down to a combination of #7370 (Browser reports file type incorrectly) The fix for #14328 might be to send as a regular file without being playable if not able to thumbnail, causing something like #7370 and #14330 There is no sane way to detect the file type ourselves in client-side JS and we can't use any services for it due to the privacy issues with that, especially for encrypted rooms. I have reported it to #14328 has the same symptom, same exception, so fixing that issue will likely fix this one too (unless the fix is from the browser) |
How about catching the exception and handling it gracefully? That could mean just retrying the upload as an opaque file without type information. If that's not possible, at least letting the user know that Element can't handle file names with certain suffixes would be helpful; much better than just getting stuck with an "uploading" message that never progresses. |
My browser has nothing to do with it. This is the Element desktop app. |
In which case it depends on the version of Chromium is used by Electron, which can vary depending on which repository you install the app from. |
In my case it is also still broken on current Chrome :-( Btw. renaming the files wit the extension OGG is a also workaround, it is an OGG container after all. |
The app now will fall back to uploading an |
Description
Attempting to upload a .webm file fails, regardless of whether through drag-and-drop or clicking the paperclip icon. The "Upload files" dialog correctly appears, but when I confirm by clicking the "Upload" button, the "Uploading filename.webm" message remains forever stuck at "0 B / MB".
If I rename the same file to give it a .webmx suffix, uploading works.
Steps to reproduce
This appeared in the Electron console log:
Version information
The text was updated successfully, but these errors were encountered: