mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
fix(download) download files with "#" in name (#80)
This commit is contained in:
parent
fb79abcab7
commit
2008f55166
1 changed files with 4 additions and 5 deletions
|
|
@ -309,16 +309,15 @@ function MenuProto(Position) {
|
|||
files.forEach((file) => {
|
||||
const selected = DOM.isSelected(file);
|
||||
const isDir = DOM.isCurrentIsDir(file);
|
||||
const path = DOM.getCurrentPath(file);
|
||||
|
||||
CloudCmd.log('downloading file ' + path + '...');
|
||||
/*
|
||||
* if we send ajax request -
|
||||
* no need in hash so we escape #
|
||||
* and all other characters, like "%"
|
||||
*/
|
||||
const path = DOM.getCurrentPath(file)
|
||||
.replace(/#/g, '%23');
|
||||
|
||||
CloudCmd.log('downloading file ' + path + '...');
|
||||
const encodedPath = encodeURI(path);
|
||||
const encodedPath = encodeURI(path).replace(/#/g, '%23');
|
||||
const id = load.getIdBySrc(path);
|
||||
|
||||
let src;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue