aboutsummaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorpitu <[email protected]>2017-01-14 19:40:50 -0300
committerpitu <[email protected]>2017-01-14 19:40:50 -0300
commitd0b5d4a2dfd15d484bb715415568ac21ad628f1f (patch)
treeb93b39f1f0f90c88dab695419a36e133d8b6d2f7 /public/js
parentPeople should stop bugging me about this now (diff)
downloadhost.fuwn.me-d0b5d4a2dfd15d484bb715415568ac21ad628f1f.tar.xz
host.fuwn.me-d0b5d4a2dfd15d484bb715415568ac21ad628f1f.zip
Forgot to send token on upload
Diffstat (limited to 'public/js')
-rw-r--r--public/js/upload.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/public/js/upload.js b/public/js/upload.js
index 636627e..305c40e 100644
--- a/public/js/upload.js
+++ b/public/js/upload.js
@@ -29,7 +29,10 @@ window.onload = function () {
previewTemplate: previewTemplate,
createImageThumbnails: false,
maxFiles: 1000,
- autoProcessQueue: true
+ autoProcessQueue: true,
+ headers: {
+ 'auth': localStorage.token
+ }
});
// Update the total progress bar