-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
MKV file upload failure while it works on classic editor #8873
Comments
Just to note, the file upload fails on the file block, and it's not uploaded to the media library region either. Just looked at the media library region and it's not seen there - meaning, it's not uploaded at all. |
Tested and confirmed that I cannot drag an Sample file: https://github.com/Matroska-Org/matroska-test-files/blob/master/test_files/test1.mkv There were no errors in the browser console during my test and the only possibly-relevant thing I could find in the Network tab is that the autosave had a I also found that I was able to upload an
After testing :) I noticed that https://codex.wordpress.org/Uploading_Files lists which file types are supported and
In your classic editor example, I see that uploading an |
Yes, I could say that's what I am hoping to see ATM. But, if WordPress does not support MKV files, it would not make sense for this file to appear as a file block. Rather it would make sense to appear in a format that it does right now - just a link. Although the link being broken is another concern that might need to be addressed. |
In testing this, I can reproduce the security warning which shows upon upload. This makes sense given file upload restrictions. However, it would also make sense that this would be restricted in the Classic Editor as well. And indeed, in my testing, I see a similar notice, contrary to what was reported here. Is it possible that you have some plugin which extends the default set of allowable file types? |
Just another note: seems like |
( I think) A similar thing is happening with .stl files, I can upload through the media library, but not in a file block. Looking through the source for the uploadMedia function, this particular error occurs when the fileType doesn't occur in the allowed mime types for user list. I can check that list with Even if the file upload doesn't work, the files you tried to upload are still viewable if you find the hidden input element. You can peek in and see what data is going into gutenberg, and for the .stl files the type key is missing. So I don't know why the file type isn't getting added to the input, but it seems like it's evaluating to false, so that when |
@aduth Please check For example Please also refer Chromium bug 511895 as example of Chromium developers opinion, it generally matches to information listed at MDN. Fix of this issue may require update of |
I can also confirm, that I only get the error message when using the drop zone or form file upload in the |
In testing I was able to upload an MKV file into the Editor on WP6.2.2. Closing this as no longer able to replicate. |
Describe the bug: MKV file upload fails on the Gutenberg editor with a
Sorry, this file type is not permitted for security reasons.
reason while it uploads fine on the classic editor. Clearly the WordPress instance accepts this file as it uploads fine on the classic editor and the media library page.Steps to reproduce the behavior:
.mkv
video fileSorry, this file type is not permitted for security reasons.
is shown on that file blockExpected behavior: The file uploads fine and shows up on the file block.
Screenshots and GIF indicating this behavior
Desktop (please complete the following information): WordPress 4.9.8 and Gutenberg 3.5.0 using Google Chrome Version 68.0.3440.84 (Official Build) (64-bit) on macOS 10.13.6
The text was updated successfully, but these errors were encountered: