add support for storing videos and files

This commit is contained in:
Aiden Vigue 2023-07-26 13:24:00 -04:00
parent cc346035a9
commit d55706b414
No known key found for this signature in database

View file

@ -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)