Skip to content

Error content length when readstream have start and end options #71

@lfeng

Description

@lfeng

I create a readstream with start and end options,the getLength get a error size

fs.createReadStream('sample.txt', {start: 90, end: 99});

lib/form_data.js line 82

      fs.stat(value.path, function(err, stat) {
        if (err) {
          next(err);
          return;
        }

        next(null, stat.size);
      });  

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions