mirror of
https://github.com/laosb/ghos3.git
synced 2025-04-30 23:51:08 +00:00
Merge pull request #6 from acvigue/urltopath
Add support for storing videos and files
This commit is contained in:
commit
b59f3e1cc8
1 changed files with 6 additions and 0 deletions
|
@ -124,6 +124,12 @@ class S3Storage extends StorageBase {
|
|||
return new S3(options)
|
||||
}
|
||||
|
||||
// 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
|
||||
urlToPath(url) {
|
||||
return url;
|
||||
}
|
||||
|
||||
async save(image: Image, targetDir?: string) {
|
||||
const directory = targetDir || this.getTargetDir(this.pathPrefix)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue