Method
SoupMultipartappend_form_file
Declaration [src]
void
soup_multipart_append_form_file (
SoupMultipart* multipart,
const char* control_name,
const char* filename,
const char* content_type,
GBytes* body
)
Description [src]
Adds a new MIME part containing body
to multipart
Uses “Content-Disposition: form-data”, as per the HTML forms specification.
Parameters
control_name |
const char* |
The name of the control associated with this file. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
filename |
const char* |
The name of the file, or |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
content_type |
const char* |
The MIME type of the file, or |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
body |
GBytes |
The file data. |
|
The data is owned by the caller of the function. |