Improved FormData support; (#4448)#4528
Closed
jasonsaayman wants to merge 1 commit into
Closed
Conversation
* 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;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixed isFormData predicate;
Added support for automatic object serialization to FormData if
Content-Typeismultipart/form-data;Added support for FormData to be overloaded using
config.env.FormDataoption;Added support for FormData in node.js environment through
form-datapackage;Added the
form-datapackage 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-Typeismultipart/form-data;Added support for FormData to be overloaded using
config.env.FormDataoption;Added support for FormData in node.js environment using
form-datapackage;(cherry picked from commit 73e3bdb)
Added shortcut methods
postForm,putForm,patchFormto 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:
Describe your pull request here.