Multipart.appendFormFile

Adds a new MIME part containing @body to @multipart, using "Content-Disposition: form-data", as per the HTML forms specification. See soup_form_request_new_from_multipart() for more details.

class Multipart
void
appendFormFile

Parameters

controlName string

the name of the control associated with this file

filename string

the name of the file, or %NULL if not known

contentType string

the MIME type of the file, or %NULL if not known

body_ Buffer

the file data

Meta

Since

2.26