Add example config, rename to api_jey
This commit is contained in:
parent
03afaa4a08
commit
2597db4820
2 changed files with 3 additions and 1 deletions
2
config.example.js
Normal file
2
config.example.js
Normal file
|
@ -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
|
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue