Make BigfileUploadInit merger sites compatible

This commit is contained in:
shortcutme 2017-10-26 10:43:45 +02:00
parent e8f049a765
commit 99e5af67b7
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 10 additions and 5 deletions

View file

@ -142,12 +142,12 @@ class UiWebsocketPlugin(object):
"piece_size": piece_size,
"piecemap": inner_path + ".piecemap.msgpack"
}
self.response(to, {
return {
"url": "/ZeroNet-Internal/BigfileUpload?upload_nonce=" + nonce,
"pice_size": piece_size,
"inner_path": inner_path,
"file_relative_path": file_relative_path
})
}
@PluginManager.registerTo("ContentManager")