Skip to content

Commit e74a96a

Browse files
author
Abhinav Gautam
committed
fix local url
1 parent 49a6d75 commit e74a96a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/upload/local.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Local {
2323
await pipeline(mediaStream, fs.createWriteStream(filePath));
2424
let data = {filePath}
2525
if(this.baseUrl) {
26-
let downloadUrl = new URL('/'+fileName, this.baseUrl).href;
26+
let downloadUrl = this.baseUrl+'/'+fileName;
2727
data = {...data,downloadUrl}
2828
}
2929
return data;

0 commit comments

Comments
 (0)