Skip to content

Commit

Permalink
Se agrega el metodo POST con Content-Type:multipart/form
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Larrieur <[email protected]>
  • Loading branch information
mlarrieur committed Sep 18, 2017
1 parent 51b0a43 commit f40bea2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/@ionic-native/plugins/http/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,16 @@ export class HTTP extends IonicNativePlugin {
*/
@Cordova()
downloadFile(url: string, body: any, headers: any, filePath: string): Promise<HTTPResponse> { return; }


/**
*
* @param url {string} The url to send the request to
* @param body {Object} The body of the request
* @param files {Objec} The files to be uploaded
* @param headers {Object} The headers to set for this request
* @returns {Promise<HTTPResponse>} returns a promise that resolve on success, and reject on failure
*/
@Cordova()
multipartForm(url: string, body: any, files: any, headers: any): Promise<HTTPResponse> { return; }
}

0 comments on commit f40bea2

Please sign in to comment.