mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -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() {
|
||||
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 New Issue
Block a user