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

Loopback Multipart form data #4224

Closed
sujeshthekkepatt opened this issue Jul 3, 2019 · 3 comments
Closed

Loopback Multipart form data #4224

sujeshthekkepatt opened this issue Jul 3, 2019 · 3 comments
Assignees

Comments

@sujeshthekkepatt
Copy link
Contributor

Is there any update on handling multipart form data? My third party API send data in the form of multipart/form-data. I used Multer inside a custom middleware function but it gives '100 continue' response. And my remote method is not calling. Is there any proper solution? Or Any update on implementing support for multipart/form-data?

@emonddr
Copy link

emonddr commented Jul 4, 2019

@sujeshthekkepatt

Thank you for reaching out to us.

Can you please provide a repo with a small example, and step by step description of the issue you encountered?

Thank you

:)

@sujeshthekkepatt
Copy link
Contributor Author

@emonddr
Thank you for the response.

I tried reproducing it but I couldn't. But the issue persists on the production app. This happens when an enctype header presents on the request.

app.post('/example/endpoint/', multer().none(),(req,res,next)=>{
console.log('this middleware fucntions runs');
next(); //doesnt passing to my remote-endpoint
})

And after a few seconds, I am getting a 'request aborted' in the console. But this works fine when I created a sample. Don't know what may be causing it? Any help appreciated

@dhmlau
Copy link
Member

dhmlau commented Jul 12, 2019

Related to loopbackio/loopback-next#1873

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

3 participants