diff --git a/app/assets/javascripts/discourse/mixins/upload.js.es6 b/app/assets/javascripts/discourse/mixins/upload.js.es6 index 5937135b31a..eac1fcff186 100644 --- a/app/assets/javascripts/discourse/mixins/upload.js.es6 +++ b/app/assets/javascripts/discourse/mixins/upload.js.es6 @@ -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"))