mirror of
https://github.com/laosb/ghos3.git
synced 2025-05-01 08:01:08 +00:00
bug fix in urltopath
This commit is contained in:
parent
8623154efa
commit
2502973e3d
1 changed files with 2 additions and 1 deletions
|
@ -127,7 +127,8 @@ class S3Storage extends StorageBase {
|
||||||
// Doesn't seem to be documented, but required for using this adapter for other media file types.
|
// Doesn't seem to be documented, but required for using this adapter for other media file types.
|
||||||
// Seealso: https://github.com/laosb/ghos3/pull/6
|
// Seealso: https://github.com/laosb/ghos3/pull/6
|
||||||
urlToPath(url) {
|
urlToPath(url) {
|
||||||
return url;
|
const parsedurl = new URL(url);
|
||||||
|
return parsedurl.pathname;
|
||||||
}
|
}
|
||||||
|
|
||||||
async save(image: Image, targetDir?: string) {
|
async save(image: Image, targetDir?: string) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue