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

Support DiskStorage in multer #8

Open
helje5 opened this issue Jan 27, 2021 · 0 comments
Open

Support DiskStorage in multer #8

helje5 opened this issue Jan 27, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@helje5
Copy link
Member

helje5 commented Jan 27, 2021

As per 0.8.0 / Issue #7 we now support multipart/form-data uploads "multer style". 0.8.0 only supports the MemoryStorage though, DiskStorage is prepared but not implemented.

Adding DiskStorage needs a little refactoring to support proper async writing to disk and all the back-n-forth due to this. The multer DiskStorage also has async callbacks to decide on storage names and such.

To implement this, the multer.Context needs to provide the DiskStorage a place to store processing state, i.e. what async operations are still running and need to complete before next can be called.

@helje5 helje5 added the enhancement New feature or request label Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant