From 80cb8e9e56649436335131dc7a6bd31587407288 Mon Sep 17 00:00:00 2001 From: jonathan Date: Wed, 31 Mar 2021 11:46:22 +0200 Subject: [PATCH] work with id, not config path --- pages/media.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/media.vue b/pages/media.vue index 9ea5f0c6..4b9fdecc 100644 --- a/pages/media.vue +++ b/pages/media.vue @@ -400,7 +400,7 @@ export default { this.currentProgress = progress } - const configPath = this.configGui[this.configID].playout_config + const channel = this.configGui[this.configID].id for (const [i, file] of this.inputFiles.entries()) { this.uploadTask = file.name @@ -413,7 +413,7 @@ export default { } await this.$axios.put( - `api/player/media/upload/${encodeURIComponent(file.name)}?path=${encodeURIComponent(this.crumbs.map(e => e.text).join('/'))}&config_path=${configPath}`, + `api/player/media/upload/${encodeURIComponent(file.name)}?path=${encodeURIComponent(this.crumbs.map(e => e.text).join('/'))}&channel=${channel}`, file, config )