fix: copying files with special characters

This commit is contained in:
Ramires Viana
2021-04-15 11:50:30 +00:00
parent ba7e71a7c3
commit 20ebbf6611
2 changed files with 13 additions and 15 deletions

View File

@@ -151,13 +151,13 @@ export default {
for (let i of this.selected) {
items.push({
from: this.req.items[i].url,
to: this.url + this.req.items[i].name,
to: this.url + encodeURIComponent(this.req.items[i].name),
name: this.req.items[i].name,
});
}
let base = el.querySelector(".name").innerHTML + "/";
let path = this.$route.path + base;
// Get url from ListingItem instance
let path = el.__vue__.url;
let baseItems = (await api.fetch(path)).items;
let action = (overwrite, rename) => {