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
Bug when previewing an ascii file whose mimetype is not detected #1809
Comments
I have the exact same issue with a png image. filetype is loaded with cdn in the order the documentation states.
The error msg: also, when dropping images/files into the container, the console spams size properties |
Do not think this is the issue for your use case. The hex variable is defined properly on line 5856 later and is used by the other functions/methods inside reader,onload callback. Need to verify your issue. Can you share details or a JS FIDDLE to reproduce your issue? |
https://jsfiddle.net/vejb5suz/ in jsfiddle nothing comes out but it does not load the preview of the file but locally this is the error that marks |
Still there is an error in getMimeType(). |
Get the updated release from this repo and retry. |
is that issue is solved for png,svg image ? |
This is to report a bug in the code.
On fileinput.js, line 448 there is the
getMimeType()
function which has as its firs parametersignature
.This function is called on line 5788 with the
hex
variable as first parameter, buthex
is not defined.The problem arises when the plugins must show a preview of an ASCII file whose mime type is not detected, like a composer.lck file. In this case, an error is logged to the console
signature not defined
and the file is not shown in the preview window.The text was updated successfully, but these errors were encountered: