balderdashy / balderdashy/sails
Skipper:Skipper ignores upstreams whose param names end in "[]"
- Dominant language
- JavaScript
- Stars
- 22.8k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
When i try to upload one file, everything is ok!
But when i upload multiples, skipper does not work! I think because the upload try to use array in their param, so skipper does not understand!
Here is the code:
HTML:
```
```
Sailsjs:
```
req.file('files').upload(function (err, uploadFiles) {
console.log(uploadFiles.length);
});
```
The log always give the 0 result
Contributor guide
Research direction
Start by reproducing the multipart upload shown in the issue, using an input named file[] and the req.file('files').upload entry point. Compare single-file and multiple-file behavior; done means uploads using array-style parameter names are recognized and uploadFiles reports the uploaded files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100