Upload dir async#855
Conversation
It had client-side recursive iteration that sent several requests to the server, one for each folder creation and file upload. The server side did path validation (including checking for attempts to walk up the directory tree) etc. |
|
@wbt thanks for sharing |
|
It might be helpful to add some documentation updates with this PR too. |
@wbt Added a note in the readme Published https://www.npmjs.com/package/@grossacasacs/formidable here so I can test it for a while |
|
@tommyhtran please help to review this PR |
|
Thanks for the review, I will add a few more tests then merge |
we decode # encoded things now ?
ReferenceError: require is not defined
8 | size: 1024,
9 | filepath: '/tmp/cat.png',
> 10 | name: 'cat.png',
| ^
11 | type: 'image/png',
12 | lastModifiedDate: now,
13 | originalFilename: 'cat.png',
at _getJestObj (test/unit/persistent-file.test.js:10:7)
at test/unit/persistent-file.test.js:19:1
|
All the test pass now ;) |
For some reason parse callback is never called, I did not yet figure out whyContext:
#853