mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Added debugging to file upload for easier diagnostics
This commit is contained in:
parent
e8befe9afd
commit
2855a9b2e8
Binary file not shown.
BIN
public/js/dist/all.js
vendored
BIN
public/js/dist/all.js
vendored
Binary file not shown.
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"/js/build/app.js": "/js/build/app.js?id=32ad11cb23fc92588929",
|
"/js/build/app.js": "/js/build/app.js?id=edf4823a58f20c4e41fc",
|
||||||
"/css/build/AdminLTE.css": "/css/build/AdminLTE.css?id=59413334823616b81341",
|
"/css/build/AdminLTE.css": "/css/build/AdminLTE.css?id=59413334823616b81341",
|
||||||
"/css/build/app.css": "/css/build/app.css?id=032fd8c3fce99c7fd862",
|
"/css/build/app.css": "/css/build/app.css?id=032fd8c3fce99c7fd862",
|
||||||
"/css/build/overrides.css": "/css/build/overrides.css?id=0b4aefd7ef0c117ef23a",
|
"/css/build/overrides.css": "/css/build/overrides.css?id=0b4aefd7ef0c117ef23a",
|
||||||
|
@ -34,5 +34,5 @@
|
||||||
"/css/dist/bootstrap-table.css": "/css/dist/bootstrap-table.css?id=a534edb9f7179f6dcf62",
|
"/css/dist/bootstrap-table.css": "/css/dist/bootstrap-table.css?id=a534edb9f7179f6dcf62",
|
||||||
"/js/build/vendor.js": "/js/build/vendor.js?id=ac70ab5fd89efc2aa7d0",
|
"/js/build/vendor.js": "/js/build/vendor.js?id=ac70ab5fd89efc2aa7d0",
|
||||||
"/js/dist/bootstrap-table.js": "/js/dist/bootstrap-table.js?id=9407782198cbc29f23d1",
|
"/js/dist/bootstrap-table.js": "/js/dist/bootstrap-table.js?id=9407782198cbc29f23d1",
|
||||||
"/js/dist/all.js": "/js/dist/all.js?id=3fade7209d054eb18a72"
|
"/js/dist/all.js": "/js/dist/all.js?id=29881ddb42a1bf849280"
|
||||||
}
|
}
|
||||||
|
|
|
@ -465,9 +465,13 @@ $(document).ready(function () {
|
||||||
$(id + '-info').append('<span class="label label-default">' + this.files[i].name + ' (' + formatBytes(this.files[i].size) + ')</span> ');
|
$(id + '-info').append('<span class="label label-default">' + this.files[i].name + ' (' + formatBytes(this.files[i].size) + ')</span> ');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('Max size is: ' + max_size);
|
||||||
|
console.log('Real size is: ' + total_size);
|
||||||
|
|
||||||
if (total_size > max_size) {
|
if (total_size > max_size) {
|
||||||
$status.addClass('text-danger').removeClass('help-block').prepend('<i class="badfile fa fa-times"></i> ').append('<span class="previewSize"> Upload is ' + formatBytes(total_size) + '.</span>');
|
$status.addClass('text-danger').removeClass('help-block').prepend('<i class="badfile fa fa-times"></i> ').append('<span class="previewSize"> Upload is ' + formatBytes(total_size) + '.</span>');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$status.addClass('text-success').removeClass('help-block').prepend('<i class="goodfile fa fa-check"></i> ');
|
$status.addClass('text-success').removeClass('help-block').prepend('<i class="goodfile fa fa-check"></i> ');
|
||||||
var $preview = $(id + '-imagePreview');
|
var $preview = $(id + '-imagePreview');
|
||||||
readURL(this, $preview);
|
readURL(this, $preview);
|
||||||
|
|
Loading…
Reference in a new issue