FIX: uploads when deployed to a subfolder

This commit is contained in:
Neil Lalonde 2015-05-27 14:43:03 -04:00
parent 1434e46ed2
commit 89031b9186
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ export default Em.Mixin.create({
_initialize: function() {
const $upload = this.$(),
csrf = Discourse.Session.currentProp("csrfToken"),
uploadUrl = this.getWithDefault("uploadUrl", "/uploads"),
uploadUrl = Discourse.getURL(this.getWithDefault("uploadUrl", "/uploads")),
reset = () => this.setProperties({ uploading: false, uploadProgress: 0});
this.messageBus.subscribe("/uploads/" + this.get("type"), upload => {