multer
multer copied to clipboard
[docs, help wanted] Frontend Usage Examples
We often see Issues opened for folks who are having troubles on the client side. Uploading an array of files clientside is non-obvious, due to no fault of Multer.
Most recently #880, but there are many such examples. (@expressjs/triagers maybe link some related issues here if you find them?)
PR https://github.com/expressjs/multer/pull/580 addressed this with a regular HTML form.
I propose a specific section of the docs, something like ## Clientside Examples
to feature prominently, and allow easy linking to, with common examples.
Specifically we are missing an example for FormData
web api. We can't cover everything, but let's cover some of the most asked cases.
I'm happy to take this on. I can add examples for single and multiple files using HTML form and the FormData
API, and perhaps some CodeSandbox links to examples with some popular front-end frameworks?
Great to hear @mvasigh! Let's tackle one example at a time, it makes reviewing PRs much easier. We're currently missing a FormData
example, so why don't you start there? We have an html form example in the docs right now, but we can expand on that soon.
Let's also try and keep examples Minimal.
@LinusU What do you think about where these examples should live? Maybe an examples directory?
It seems this issue is still open, I will try to add a React example