diff --git a/CHANGELOG b/CHANGELOG
index fda3386..97f17c2 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -6,6 +6,7 @@ Revision history for Lufi
- Option to force "Burn after reading" for each uploaded file
- Use GzipStatic and StaticCache plugins for speed
- Allow to block files by setting an abuse field in DB
+ - Display file size when uploading
0.02.2 2017-09-18
- Fix cron tasks bug
diff --git a/themes/default/public/js/lufi-up.js b/themes/default/public/js/lufi-up.js
index e594927..e60787c 100644
--- a/themes/default/public/js/lufi-up.js
+++ b/themes/default/public/js/lufi-up.js
@@ -137,6 +137,7 @@ function uploadFile(i, delay, del_at_first_view) {
// Get the file and properties
var file = window.fileList[i];
var name = escapeHtml(file.name);
+ var size = filesize(file.size);
var parts = Math.ceil(file.size/window.sliceLength);
if (parts === 0) {
parts = 1;
@@ -152,7 +153,7 @@ function uploadFile(i, delay, del_at_first_view) {
'',
'',
'
',
@@ -266,12 +267,13 @@ function updateProgressBar(data) {
$('#parts-'+window.fc).remove();
var n = $('#name-'+window.fc);
+ var s = $('#size-'+window.fc);
var d = $('
');
var url = baseURL+'r/'+short+'#'+key;
var del_url = actionURL+'d/'+short+'/'+data.token;
var links = encodeURIComponent('["'+short+'"]');
var limit = (delay === 0) ? i18n.noLimit : i18n.expiration+' '+moment.unix(delay * 86400 + created_at).locale(window.navigator.language).format('LLLL');
- n.html(n.html()+' '+limit);
+ n.html(n.html()+' '+s.html()+' '+limit);
d.html(['