HTTPc_FormAddFile
Add a multipart file object to the form table.
Files
http-c.h/http-c.c
Prototype
void HTTPc_FormAddFile (HTTPc_FORM_TBL_FIELD *p_form_tbl, HTTPc_MULTIPART_FILE *p_file_obj, HTTPc_ERR *p_err);
Arguments
p_form_tbl
Pointer to the form table into which to include the file object.
p_file_obj
Pointer to the multipart file object to put in table.
p_err
Pointer to variable that will receive the return error code from this function:
HTTPc_ERR_NONE
HTTPc_ERR_NULL_PTR
HTTPc_ERR_FORM_FIELD_INVALID
Returned Values
None.
Required Configuration
The preprocessor macro configuration HTTPc_CFG_FORM_EN
must be set to DEF_ENABLED
.
Notes / Warnings
See the example here for a example on how to use this function correctly.