Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mycore-webtools/src/main/ts/upload/src/FileTransfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export class FileTransfer {
} else {
uploadPath = this._entry.fullPath[0] == '/' ? this._entry.fullPath.substr(1) : this._entry.fullPath;
}
uploadPath = uploadPath.split('/').map(s => encodeURI(s)).join('/');
uploadPath = uploadPath.split('/').map(s => encodeURIComponent(s)).join('/');

this.request = new XMLHttpRequest();

Expand Down
2 changes: 1 addition & 1 deletion mycore-webtools/src/main/ts/upload/src/UploadTarget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export class UploadTarget {
} else {
uploadPath = fileEntry.name;
}
uploadPath = uploadPath.split('/').map(s => encodeURI(s)).join('/');
uploadPath = uploadPath.split('/').map(s => encodeURIComponent(s)).join('/');
const url = Utils.getUploadSettings().webAppBaseURL + "rsc/files/upload/" + this.uploadHandler + "/" + uploadPath + "?size=" + size;
const request = new XMLHttpRequest();
request.open('GET', url, true);
Expand Down