diff --git a/res/static/res/script/compiled/home.js b/res/static/res/script/compiled/home.js index 7aff8f3..38f959d 100644 --- a/res/static/res/script/compiled/home.js +++ b/res/static/res/script/compiled/home.js @@ -160,13 +160,15 @@ var UploadWorker = /** @class */ (function () { formData.append("name", file.name); var that = this; // jquery changes the definiton of "this" $.ajax({ + type: 'POST', url: "/api/file", data: formData, + timeout: 7200000, cache: false, + async: true, crossDomain: false, contentType: false, processData: false, - type: 'POST', xhr: function () { var xhr = new XMLHttpRequest(); xhr.upload.addEventListener("progress", function (evt) { diff --git a/res/static/res/style/layout.css b/res/static/res/style/layout.css index 4449ae9..5de825a 100644 --- a/res/static/res/style/layout.css +++ b/res/static/res/style/layout.css @@ -223,7 +223,7 @@ a:hover{ margin: 6px; padding: 0; overflow: hidden; - box-shadow: 2px 2px 5px 2px #111; + box-shadow: 0px 0px 5px 2px #111; background-color: #111; color: var(--text_color); word-break: break-all; diff --git a/res/static/res/typescript/lib/uploader.ts b/res/static/res/typescript/lib/uploader.ts index 7403117..611bade 100644 --- a/res/static/res/typescript/lib/uploader.ts +++ b/res/static/res/typescript/lib/uploader.ts @@ -72,13 +72,15 @@ class UploadWorker { var that = this // jquery changes the definiton of "this" $.ajax({ + type: 'POST', url: "/api/file", data: formData, + timeout: 7200000, // 2 hours cache: false, + async: true, crossDomain: false, contentType: false, processData: false, - type: 'POST', xhr: function () { var xhr = new XMLHttpRequest(); xhr.upload.addEventListener("progress", function (evt) {