You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
This is (at least partially) a duplicate of #3740 --- The rest of this is a feature request which is a different feature request which is not explained very clearly. Please be more clear explaining the second part regarding Content-Type, this may be more actionable, and post a new issue for that.
i don't think we have anything in common, though i will vote for him.
my focus is on type detection, not on the result data translated.
i think the $http object should be able to automatically detect the request data and automatically specify the right Content Type to the XMLHTTPRequest object.
the ContentTypes of data to be transferred are apparent and limited. no need to specify even if user s want to.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
1、string based params
'a=1&b=2'
2、object based params
{
a: 1,
b: 2
}
3、FormData object
fd = new FormData()
fd = new FormData($('form').get(0));
fd.append('a', 1);
fd.append('b', 2);
support automatic Content Type detection, ajax file uploading withd FormData
as jQuery does.
The text was updated successfully, but these errors were encountered: