mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: uploads when deployed to a subfolder
This commit is contained in:
parent
1434e46ed2
commit
89031b9186
@ -9,7 +9,7 @@ export default Em.Mixin.create({
|
|||||||
_initialize: function() {
|
_initialize: function() {
|
||||||
const $upload = this.$(),
|
const $upload = this.$(),
|
||||||
csrf = Discourse.Session.currentProp("csrfToken"),
|
csrf = Discourse.Session.currentProp("csrfToken"),
|
||||||
uploadUrl = this.getWithDefault("uploadUrl", "/uploads"),
|
uploadUrl = Discourse.getURL(this.getWithDefault("uploadUrl", "/uploads")),
|
||||||
reset = () => this.setProperties({ uploading: false, uploadProgress: 0});
|
reset = () => this.setProperties({ uploading: false, uploadProgress: 0});
|
||||||
|
|
||||||
this.messageBus.subscribe("/uploads/" + this.get("type"), upload => {
|
this.messageBus.subscribe("/uploads/" + this.get("type"), upload => {
|
||||||
|
Loading…
Reference in New Issue
Block a user