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

Add uploaded file size to extracted data #4

Open
MikeSorokin opened this issue Sep 20, 2017 · 3 comments
Open

Add uploaded file size to extracted data #4

MikeSorokin opened this issue Sep 20, 2017 · 3 comments

Comments

@MikeSorokin
Copy link

https://github.com/mscdex/busboy#examples show how to extract data:

busboy.on('file', function(fieldname, file, filename, encoding, mimetype) {
  console.log('File [' + fieldname + ']: filename: ' + filename + ', encoding: ' + encoding + ', mimetype: ' + mimetype);
  file.on('data', function(data) {
    console.log('File [' + fieldname + '] got ' + data.length + ' bytes'); // <-- HERE
  });
  file.on('end', function() {
    console.log('File [' + fieldname + '] Finished');
  });
});

Is it possible to implement this feature in this package?

@MikeSorokin
Copy link
Author

Hi @dominhhai ! Any feedback would be useful...

@dominhhai
Copy link
Owner

Hi @MikeSorokin
Sorry for late response. It is not possible to implement this.
PR are always welcome!

@MikeSorokin
Copy link
Author

@dominhhai late response is better than no response at all :) Can you explain why implementation is not possible? Reasons may be too obvious for me to see them by myself...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants