IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


◆ CGI_Install_Func_OnUpload()

int CGI_Install_Func_OnUpload ( const char *  pathPtr,
void *  CgiFuncOnUpload 
)

This function installs a CGI handler function that will be called when an HTTP file upload was performed. The CGI function must be implemented in the same way as a CGI function, installed with CGI_Install(). For deleting an entry, install a null pointer.

Note
The name and path of the uploaded file is stored in the CgiRequests fPathPtr element.
Parameters
pathPtrURI for which the upload callback should be installed.
CgiFuncOnUploadPointer to CGI handler function
Returns
zero on success, -1 on failure.
Since
V0.80
See also
CGI_Install(), CGI_Enable_Upload(), CGI_Install_Func_OnErr()





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Tue Dec 12 2017 09:23:36 by Doxygen 1.8.13