Permalink
Browse files

Small fix to display file size correctly

  • Loading branch information...
1 parent 8eb9d57 commit 3936d4a5c424ee343b07f6e69ebb02469a10831f @0ip 0ip committed Apr 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 demos/dnd-upload.html
View
@@ -64,7 +64,7 @@
reader.readAsDataURL(file);
} else {
- holder.innerHTML += '<p>Uploaded ' + file.name + ' ' + (file.fileSize ? (file.fileSize/1024|0) + 'K' : '');
+ holder.innerHTML += '<p>Uploaded ' + file.name + ' ' + (file.size ? (file.size/1024|0) + 'K' : '');
console.log(file);
}
}

0 comments on commit 3936d4a

Please sign in to comment.