Skip to content

Upload dir async - #855

Merged
GrosSacASac merged 32 commits into
masterfrom
upload-dir-async
Jun 16, 2023
Merged

GrosSacASac merged 32 commits into
masterfrom
upload-dir-async

Conversation

@GrosSacASac

@GrosSacASac GrosSacASac commented May 18, 2022 •

Copy link
Copy Markdown
Contributor

For some reason parse callback is never called, I did not yet figure out why

Context:

#853

@GrosSacASac GrosSacASac mentioned this pull request May 18, 2022
@GrosSacASac

Copy link
Copy Markdown
Contributor Author

@wbt and @Akxe have another look, it works now

The thing I forgot initially when moving to async, is I have to await for a directory to be created and then let the actual file that has that directory destination continue

@wbt I would be curious what the code you made looked like

Comment thread src/Formidable.js Resolved
tunnckoCore
tunnckoCore previously approved these changes Jun 16, 2022

@tunnckoCore tunnckoCore left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good.

Comment thread src/Formidable.js Resolved
Comment thread src/plugins/multipart.js Resolved
@GrosSacASac
GrosSacASac marked this pull request as ready for review July 13, 2022 15:50
@wbt

wbt commented Jul 14, 2022 •

Copy link
Copy Markdown
Collaborator

@wbt I would be curious what the code you made looked like

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.

@GrosSacASac

Copy link
Copy Markdown
Contributor Author

@wbt thanks for sharing

@wbt

wbt commented Jul 18, 2022

Copy link
Copy Markdown
Collaborator

It might be helpful to add some documentation updates with this PR too.

@GrosSacASac

Copy link
Copy Markdown
Contributor Author

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

@GrosSacASac

Copy link
Copy Markdown
Contributor Author

@tommyhtran please help to review this PR

@GrosSacASac GrosSacASac mentioned this pull request Dec 1, 2022

@sboudouk sboudouk left a comment

Copy link
Copy Markdown

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.

@GrosSacASac

Copy link
Copy Markdown
Contributor Author

Thanks for the review, I will add a few more tests then merge

@sboudouk sboudouk left a comment •

Copy link
Copy Markdown

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 ?

@GrosSacASac
GrosSacASac merged commit c249922 into master Jun 16, 2023
@GrosSacASac
GrosSacASac deleted the upload-dir-async branch June 16, 2023 11:08
@GrosSacASac

Copy link
Copy Markdown
Contributor Author

All the test pass now ;)
But they don't even run in github actions ...
Published as 3.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants