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

Improved FormData support; (#4448) #4528

Closed
wants to merge 1 commit into from
Closed

Conversation

jasonsaayman
Copy link
Member

  • Fixed isFormData predicate;
    Added support for automatic object serialization to FormData if Content-Type is multipart/form-data;
    Added support for FormData to be overloaded using config.env.FormData option;
    Added support for FormData in node.js environment through form-data package;

  • Added the form-data package as a dependency for the server build;
    Added tests for FormData payload;

  • Added FormData automatic serialization section;
    Refactored cancellation section;

  • Reworked toFormData helper;
    Expose toFormData helper as a static method;
    Refactored transform request;
    Added kindOf, kindOfTest, endsWith, isTypedArray util;
    Refactored utils.js to use kindOf for tests;

  • Fixed isFormData predicate; (Fixed isFormData predicate; #4413)

Added support for automatic object serialization to FormData if Content-Type is multipart/form-data;
Added support for FormData to be overloaded using config.env.FormData option;
Added support for FormData in node.js environment using form-data package;

(cherry picked from commit 73e3bdb)

  • Added shortcut methods postForm, putForm, patchForm to submit a Form;
    Added ability to submit FileList object as a FormData;
    Updated README.md;

  • Updated README.md;

Instructions

Please read and follow the instructions before creating and submitting a pull request:

  • Create an issue explaining the feature. It could save you some effort in case we don't consider it should be included in axios.
  • If you're fixing a bug, try to commit the failing test/s and the code fixing it in different commits.
  • Ensure you're following our contributing guide.

⚠️👆 Delete the instructions before submitting the pull request 👆⚠️

Describe your pull request here.

* Fixed isFormData predicate;
Added support for automatic object serialization to FormData if `Content-Type` is `multipart/form-data`;
Added support for FormData to be overloaded using `config.env.FormData` option;
Added support for FormData in node.js environment through `form-data` package;

* Added the `form-data` package as a dependency for the server build;
Added tests for FormData payload;

* Added FormData automatic serialization section;
Refactored cancellation section;

* Reworked toFormData helper;
Expose toFormData helper as a static method;
Refactored transform request;
Added kindOf, kindOfTest, endsWith, isTypedArray util;
Refactored utils.js to use kindOf for tests;

* Fixed isFormData predicate; (#4413)

Added support for automatic object serialization to FormData if `Content-Type` is `multipart/form-data`;
Added support for FormData to be overloaded using `config.env.FormData` option;
Added support for FormData in node.js environment using `form-data` package;

(cherry picked from commit 73e3bdb)

* Added shortcut methods `postForm`, `putForm`, `patchForm` to submit a Form;
Added ability to submit FileList object as a FormData;
Updated README.md;

* Updated README.md;
@jasonsaayman jasonsaayman deleted the release/0.26.2 branch April 5, 2022 14:47
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.

None yet

2 participants