mirror of
https://github.com/laosb/ghos3.git
synced 2025-04-30 23:51:08 +00:00
add support for storing videos and files
This commit is contained in:
parent
cc346035a9
commit
d55706b414
1 changed files with 4 additions and 0 deletions
|
@ -124,6 +124,10 @@ class S3Storage extends StorageBase {
|
||||||
return new S3(options)
|
return new S3(options)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
urlToPath(url) {
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
|
||||||
async save(image: Image, targetDir?: string) {
|
async save(image: Image, targetDir?: string) {
|
||||||
const directory = targetDir || this.getTargetDir(this.pathPrefix)
|
const directory = targetDir || this.getTargetDir(this.pathPrefix)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue