mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
FIX: uploads when deployed to a subfolder
This commit is contained in:
parent
1434e46ed2
commit
89031b9186
1 changed files with 1 additions and 1 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Reference in a new issue