Merge pull request #29 from 0ip/patch-1

Small fix to display file size correctly
This commit is contained in:
Remy Sharp 2013-01-07 14:31:28 -08:00
commit b679d3418c
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ function previewfile(file) {
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);
}
}