send()
sends a POST request for a file upload to a server-side URL
send(params?: { [key: string]: any }): void;
Parameters:
params: object
- optional, an object with additional parameters for a request
Example
form.getItem("avatar").send();
The request URL is specified by the target property.