Fix mimetypes on certain boards (/w/).
This commit is contained in:
parent
cc72a0fdfa
commit
9c6c8f20bb
@ -1854,7 +1854,7 @@
|
||||
return "image/" + type;
|
||||
}
|
||||
});
|
||||
QR.mimeTypes = mimeTypes.split(', ');
|
||||
QR.mimeTypes = mimeTypes.replace(/\s+/g, '').split(',');
|
||||
QR.mimeTypes.push('');
|
||||
fileInput = $('[type=file]', QR.el);
|
||||
fileInput.max = $('[name=MAX_FILE_SIZE]').value;
|
||||
|
||||
@ -1415,7 +1415,7 @@ QR =
|
||||
'application/pdf'
|
||||
else
|
||||
"image/#{type}"
|
||||
QR.mimeTypes = mimeTypes.split ', '
|
||||
QR.mimeTypes = mimeTypes.replace(/\s+/g, '').split ','
|
||||
# Add empty mimeType to avoid errors with URLs selected in Window's file dialog.
|
||||
QR.mimeTypes.push ''
|
||||
fileInput = $ '[type=file]', QR.el
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user