web/satellite: replace spaces with %20 in linksharing url
WHAT: replace empty spaces with %20 in linksharing url WHY: bakeoff Change-Id: I57e3cb6cde9986d32880942538fd1516790f8c8f
This commit is contained in:
parent
63c3dd2b2d
commit
1215500c83
@ -79,6 +79,8 @@ export default class UploadFile extends Vue {
|
|||||||
try {
|
try {
|
||||||
const key: string = await this.accessKey(this.apiKey, inADay, path);
|
const key: string = await this.accessKey(this.apiKey, inADay, path);
|
||||||
|
|
||||||
|
path = encodeURIComponent(path.trim());
|
||||||
|
|
||||||
return `${this.linksharingURL}/s/${key}/${path}?map=1`;
|
return `${this.linksharingURL}/s/${key}/${path}?map=1`;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
await this.$notify.error(error.message);
|
await this.$notify.error(error.message);
|
||||||
@ -100,6 +102,8 @@ export default class UploadFile extends Vue {
|
|||||||
try {
|
try {
|
||||||
const key: string = await this.accessKey(cleanAPIKey.secret, notAfter, path);
|
const key: string = await this.accessKey(cleanAPIKey.secret, notAfter, path);
|
||||||
|
|
||||||
|
path = encodeURIComponent(path.trim());
|
||||||
|
|
||||||
return `${this.linksharingURL}/${key}/${path}`;
|
return `${this.linksharingURL}/${key}/${path}`;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
await this.$notify.error(error.message);
|
await this.$notify.error(error.message);
|
||||||
|
Loading…
Reference in New Issue
Block a user