Git Product home page Git Product logo

Comments (8)

rodrigok avatar rodrigok commented on August 22, 2024 1

I just tried to attach some file to test and tried to get in a normal implementation of busboy like was described at README file.

request.post('/rest/file/upload/test/metaDocumentId/accessId/recordId/fieldName')
    .attach('file', './public/a.txt').expect(200, done)

This test works fine with default express upload handler or using the node-multiparty lib.

from busboy.

mscdex avatar mscdex commented on August 22, 2024

Details?

from busboy.

jonathanong avatar jonathanong commented on August 22, 2024

not necessarily a bug with busboy: ladjs/superagent#241

from busboy.

mnmly avatar mnmly commented on August 22, 2024

@rodrigok it will not solve any fundamental cause of this issue, but if you really really want to pass the test, you can avoid this by commenting out the check here. It's essentially superagent's issue as @jonathanong noted.

if (!RE_FIELD.test(parsed[0]))
  return;
 
// if (!RE_FIELD.test(parsed[0]))
//  return;

from busboy.

mscdex avatar mscdex commented on August 22, 2024

Does anyone have a copy of the entire raw multipart body that's generated by superagent? It would be interesting to see what's causing the problem...

from busboy.

mscdex avatar mscdex commented on August 22, 2024

Closing this for now, if this is still a problem and the problematic superagent raw request data is available somewhere, I will see if there is anything I can do.

from busboy.

mscdex avatar mscdex commented on August 22, 2024

Little update: this should be fixed now in superagent by this.

from busboy.

rodrigok avatar rodrigok commented on August 22, 2024

Thank you!

from busboy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.