From 954d2702b30b3b2308114322ad4efd57a0b57705 Mon Sep 17 00:00:00 2001 From: Dibya Singh Date: Tue, 23 Apr 2013 11:47:10 +0530 Subject: [PATCH] Multiple errors for non blob files - fixed fixed multiple error prompts when uploading non blob files --- index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index a6711e8..d8a8ff2 100644 --- a/index.html +++ b/index.html @@ -84,9 +84,10 @@

Result

(e.dataTransfer || e.target).files[0], function (img) { if (!(img.src || img instanceof HTMLCanvasElement)) { - img = $( + img = $('

'+ 'Error' + - ' Loading image file failed' + ' Loading image file failed'+ + '

); } result.children().replaceWith(img);