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
Access to state during event flow #77
Comments
Assuming best practice here is to just populate the request object |
Got something working, small working POC at https://github.com/longieirl/File-Upload-NodeJS-Mongo/ |
Your code works, using Imagemin and Base64. MongoDB's best practice is to use GridFS. Here's a conversation that might help. |
I believe that the correct way to implement this now that Documentation: |
Hi,
First off, great plugin, using it for a POC and does what it says on the tin!
Just a question in relation to how I can access output generated as part of the multer step or to pass objects into it!
For example;
However, as part of the onFileUploadComplete event i need the output generated to be added to an existing table or at least added to already created object that will be saved when Multer is completed.
Your advice would be appreciated on how to either store the compressed image to the db by passing in the new mongo model during the onFileUploadComplete step or by returning the compressed image so that it can be done outside of the Mutler tasks.
J
The text was updated successfully, but these errors were encountered: