Defect #36013 » paste-image-mixed-with-other-data-transfer-items.diff
public/javascripts/attachments.js | ||
---|---|---|
278 | 278 |
var items = clipboardData.items |
279 | 279 |
for (var i = 0 ; i < items.length ; i++) { |
280 | 280 |
var item = items[i]; |
281 |
if (item.type.indexOf("image") != -1) { |
|
281 |
if (item.kind === 'file' && item.type.indexOf("image") != -1) {
|
|
282 | 282 |
var blob = item.getAsFile(); |
283 | 283 |
var date = new Date(); |
284 | 284 |
var filename = 'clipboard-' |