diff --git a/config.example.js b/config.example.js new file mode 100644 index 0000000..218d7fc --- /dev/null +++ b/config.example.js @@ -0,0 +1,2 @@ +upload.config.server = 'https://yourserver.com/' // Include the trailing slash +upload.config.api_key = 'c61540b5ceecd05092799f936e27755f' // Should be the same as the server, used for uploading diff --git a/static/js/updown.js b/static/js/updown.js index 2e28e4a..f6e578d 100644 --- a/static/js/updown.js +++ b/static/js/updown.js @@ -26,7 +26,7 @@ upload.modules.addmodule({ }, encrypted: function(progress, done, data) { var formdata = new FormData() - formdata.append('privkey', 'c61540b5ceecd05092799f936e27755f') + formdata.append('api_key', upload.config.api_key) formdata.append('ident', data.ident) formdata.append('file', data.encrypted) $.ajax({