mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 00:01:13 +08:00
FIX: backup upload when using subfolder
This commit is contained in:
@ -60,7 +60,7 @@ const ResumableUploadComponent = Ember.Component.extend(Discourse.StringBuffer,
|
|||||||
|
|
||||||
_initialize: function() {
|
_initialize: function() {
|
||||||
this.resumable = new Resumable({
|
this.resumable = new Resumable({
|
||||||
target: this.get("target"),
|
target: Discourse.getURL(this.get("target")),
|
||||||
maxFiles: 1, // only 1 file at a time
|
maxFiles: 1, // only 1 file at a time
|
||||||
headers: { "X-CSRF-Token": $("meta[name='csrf-token']").attr("content") }
|
headers: { "X-CSRF-Token": $("meta[name='csrf-token']").attr("content") }
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user