Small fix to display file size correctly

This commit is contained in:
0ip 2012-04-06 19:31:56 +03:00
parent 8eb9d573c2
commit 3936d4a5c4
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);
}
}