Multipart.appendFormFile

void appendFormFile(string controlName, string filename, string contentType, glib.bytes.Bytes body_)

Adds a new MIME part containing body to multipart

Uses "Content-Disposition: form-data", as per the HTML forms specification.

Parameters

controlNamethe name of the control associated with this file
filenamethe name of the file, or null if not known
contentTypethe MIME type of the file, or null if not known
body_the file data