Q_ENTRY* qCgiRequestParseOption ( bool  filemode,
const char *  basepath,
int  clearold 
)

Set request parsing option for file uploading in case of multipart/form-data encoding.

Parameters:
request if request is a NULL pointer, the function allocates, initializes, and returns a new object. otherwise use it.
filemode false(default) for parsing in memory, true for storing attached files to file
basepath the base path where the uploaded files are located. can be NULL if filemode is false.
clearold automatically remove temporary uploading file older than this secconds. to disable, set to 0.
Returns:
an initialized Q_ENTRY* handle, NULL if basepath can not be found.
Note:
This method should be called before qCgiRequestParse().
   Q_ENTRY *req = qCgiRequestParseOption(true, "/tmp", 86400);
   req = qCgiRequestParse(req);

Definition at line 202 of file qCgiRequest.c.


Generated on Mon Mar 26 07:00:51 2018 for JSOC_Documentation by  doxygen 1.5.7.1