-
-
Notifications
You must be signed in to change notification settings - Fork 681
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
Upload dir async #855
Upload dir async #855
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks.
Thanks for the review, I will add a few more tests then merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting feature and code LGTM, when do you expect to make this live ?
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