This commit is contained in:
Guo Xiang Tan 2018-11-12 16:07:33 +08:00
parent 10c6211cdf
commit d50f4fdd7a
1 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,8 @@ export default Em.Mixin.create({
calculateUploadUrl() {
return (
+".json?client_id=" +
getUrl(this.getWithDefault("uploadUrl", "/uploads")) +
".json?client_id=" +
(this.messageBus && this.messageBus.clientId) +
"&authenticity_token=" +
encodeURIComponent(Discourse.Session.currentProp("csrfToken"))