Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploads Bundle Abstractisation #256

Open
theodorDiaconu opened this issue Apr 4, 2022 · 0 comments · May be fixed by #274
Open

Uploads Bundle Abstractisation #256

theodorDiaconu opened this issue Apr 4, 2022 · 0 comments · May be fixed by #274
Assignees
Labels
enhancement New feature or request

Comments

@theodorDiaconu
Copy link
Contributor

  • Abstract the file storage
  • Leave S3 and Local as two valid options
  • Create the possibility of using any storage
  • Leave the posibility of having multiple storages
@Service()
class PicturesFS extends AbstractFileSystem { // AbstractS3FileSystem, AbstractLocalSystem
   getName() {
      return 'pictures';
   }
}

async init() {
   const uploads = this.container.get(UploadsBundle);
   uploads.registerFileSystems([ PicturesFS ]);
}
@theodorDiaconu theodorDiaconu added the enhancement New feature or request label Apr 4, 2022
@y-moufakkr y-moufakkr linked a pull request Apr 18, 2022 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants