Skip to content
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

Upload image format error caused crash, must refresh the page to continue to use #4828

Open
TY-LIU opened this Issue Feb 14, 2019 · 0 comments

Comments

Projects
None yet
3 participants
@TY-LIU
Copy link

TY-LIU commented Feb 14, 2019

Do you want to request a feature or report a bug?
bug
What is the current behavior?
Upload image format error caused crash, must refresh the page to continue to use.
Select any non-image file to upload, you can find this error.
Uncaught TypeError: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided.

https://codepen.io/ty-liu/pen/MLqQLB

What is the expected behavior?
Getting the file stream in the images_upload_handler hook, I judge the file type myself

Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE?
tinymce 5.0.0 / chrome 71.0.3578.98 / win 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.