Skip to content
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

Merged
merged 32 commits into from
Jun 16, 2023
Merged

Upload dir async #855

merged 32 commits into from
Jun 16, 2023

Conversation

GrosSacASac
Copy link
Contributor

@GrosSacASac GrosSacASac commented May 18, 2022

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
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

src/Formidable.js Outdated Show resolved Hide resolved
tunnckoCore
tunnckoCore previously approved these changes Jun 16, 2022
Copy link
Member

@tunnckoCore tunnckoCore left a comment

Choose a reason for hiding this comment

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

looks good.

src/Formidable.js Show resolved Hide resolved
src/plugins/multipart.js Show resolved Hide resolved
@GrosSacASac GrosSacASac marked this pull request as ready for review July 13, 2022 15:50
@wbt
Copy link
Collaborator

wbt commented Jul 14, 2022

@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
Contributor Author

@wbt thanks for sharing

@wbt
Copy link
Collaborator

wbt commented Jul 18, 2022

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

@GrosSacASac
Copy link
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
Contributor Author

@tommyhtran please help to review this PR

@GrosSacASac GrosSacASac mentioned this pull request Dec 1, 2022
Copy link

@sboudouk sboudouk left a 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.

@GrosSacASac
Copy link
Contributor Author

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

Copy link

@sboudouk sboudouk left a 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 ?

@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
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