[ ] Regression
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
File-uploading with fastify adapter results in Unsupported Media Type: multipart/form-data; boundary=----WebKitFormBoundarybFtFByqN8yn20quJ
error.
I have also tried
const adapter = new FastifyAdapter();
adapter.register(require('fastify-multipart'));
await NestFactory.create(AppModule, adapter);
which results in TypeError: req.pipe is not a function
Works properly
await NestFactory.create(AppModule, new FastifyAdapter());
And what is described in https://docs.nestjs.com/techniques/file-upload
File uploading should work with FaastifyAdapter
Nest version: 5.0.1
For Tooling issues:
- Node version: v10.5.0
- Platform: Mac
Others: N/A
Duplicate of #719
The doc ( at least the file-upload
page ) says nothing about fastify compatibility. I think it's better to mention in the doc to make users less confusing @kamilmysliwiec
There is a fastify-file-upload
@kolbma the fastify-file-upload
package ends up with the same error. @CarterLi how did you solved your issue ?
@kolbma the
fastify-file-upload
package ends up with the same error. @CarterLi how did you solved your issue ?
I gave up
@FlawaCLV "fastify-multer" and "fastify-multipart" both work just fine with NestJS. Follow the instructions by @Luby1917 to get it working.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
The doc ( at least the
file-upload
page ) says nothing about fastify compatibility. I think it's better to mention in the doc to make users less confusing @kamilmysliwiec