-
Notifications
You must be signed in to change notification settings - Fork 262
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
Move in memory handler to the separate module. #119
Conversation
Merge pull request richardgirges#116 from RomanBurunkov/master
Assign module.exports directly to the main module function(since it is currenlty only one function which could be used from outside).
Change tempFileHandler declaration.
Moving memory upload handler to the sepate file to separate logic for upload handling and in attempt to unificate upload handler interface.
Use common upload handler interface instead of variants of in memory and temp file handlers with checking useTempFiles option.
Generalization of the upload handler interface.
Generalization of the upload handler interface.
Add size option
Add file size loging in debug mode Return empty string for getFilePath method.
1 similar comment
complete function returns empty buffer since uploaded to the temporary file.
@RomanBurunkov thanks for this. Would you mind emailing me, I'd like to chat with you about something separately: richardgirges@gmail.com |
@RomanBurunkov I noticed the coverage decreased significantly, curious if this is someting you see on your side when running the tests? |
@richardgirges , I believe the coverage rate had increased becasue we now have one more file for the same functionality. And probably because there are two different separate modules for differend handlers. At least that looks more logical, but I'm not sure coverals asses that ;) And yes I saw the same things on my side. |
This PR moves memHandler in separate module and adds alpha version of file size to the module output.
That also should fix issue #118