Skip to content

Safe default filename#689

Merged
GrosSacASac merged 34 commits into
masterfrom
safe-default-filename
Mar 18, 2021
Merged

Safe default filename#689
GrosSacASac merged 34 commits into
masterfrom
safe-default-filename

Conversation

@GrosSacASac

@GrosSacASac GrosSacASac commented Feb 18, 2021

Copy link
Copy Markdown
Contributor

@tunnckoCore Changed a bit how filename works (read the commit messages to get an overview)

fixes #672, #671, #389, #596, #465, #358

@GrosSacASac GrosSacASac marked this pull request as ready for review February 18, 2021 21:21
tunnckoCore
tunnckoCore previously approved these changes Feb 19, 2021

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

Good job.

So now we only have filename and mime, right? Cool.

I'm more for calling it mimetype instead (plus it's same length as filename so.. haha), but you decide.

Comment thread src/Formidable.js Outdated
Comment thread test/unit/persistent-file.test.js Outdated
Comment thread test/unit/volatile-file.test.js Outdated
Comment thread src/Formidable.js Outdated
Comment thread src/Formidable.js Outdated
@GrosSacASac GrosSacASac requested a review from tunnckoCore March 2, 2021 12:51
@GrosSacASac

Copy link
Copy Markdown
Contributor Author

@illl48 @davidstrouk, @ololoepepe , @mclark-newvistas please try it out

npm i github:node-formidable/formidable#safe-default-filename

Comment thread test/standalone/content-transfer-encoding.test.js Outdated
tunnckoCore
tunnckoCore previously approved these changes Mar 4, 2021

@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 i think, will review it again in the weekend.

@GrosSacASac

Copy link
Copy Markdown
Contributor Author

Once this is merged we can open a PR for https://github.com/node-formidable/formidable/tree/filter-upload which helps to filter files before they are uploaded

@GrosSacASac

Copy link
Copy Markdown
Contributor Author

fixes #648

@GrosSacASac

Copy link
Copy Markdown
Contributor Author

@tunnckoCore Can we merge it ?

@GrosSacASac GrosSacASac mentioned this pull request Mar 17, 2021
@tunnckoCore

Copy link
Copy Markdown
Member

@tunnckoCore Can we merge it ?

yep, i think so, sorry for not responding after the last review.

ii think we are close to v2 after this, what you think?

@GrosSacASac

Copy link
Copy Markdown
Contributor Author

I agree

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.

Better consistency of name, filename, type, mime, options and pass more to fileWriteHandler

2 participants