File nut/app/uhttpd_upload/httpd_upload.c


Included Files


Preprocessor definitions

#define HTTP_ROOT

#define MIN( a, b )

#define MAX_UPSIZE 1460


External Variables

http_root_path
extern char* http_root_path

Global Function NutAppMain()

int NutAppMain ( void )
Calls: HttpRegisterCgiFunction(), HttpRegisterMediaType(), HttpRegisterRedir(), MediaTypeInitDefaults(), StreamClientAccept(), StreamInit(), puts()
References Functions: CgiUpload() nut/app/uhttpd_upload/httpd_upload.c
  HttpCgiFunctionHandler(), HttpdClientHandler()

Local Function CgiUpload()

static int CgiUpload ( HTTPD_SESSION* hs )
Calls: UploadFile() nut/app/uhttpd_upload/httpd_upload.c
  HttpSendRedirection(), malloc(), strcat(), strcpy(), strlen()
Used in: NutAppMain() nut/app/uhttpd_upload/httpd_upload.c
References Variables: http_root_path

Local Function CheckForPost()

static int CheckForPost ( HTTP_REQUEST* req, int type )
Calls: strncasecmp()
Called by: GetMultipartBoundary() nut/app/uhttpd_upload/httpd_upload.c

Local Function GetMultipartBoundary()

static char* GetMultipartBoundary ( HTTP_REQUEST* req )
Calls: CheckForPost() nut/app/uhttpd_upload/httpd_upload.c
  HttpArgValueSub(), malloc(), memcpy()
Called by: UploadFile() nut/app/uhttpd_upload/httpd_upload.c

Local Function UploadFile()

static char* UploadFile ( HTTPD_SESSION* hs, char* path )
Calls: GetMultipartBoundary() nut/app/uhttpd_upload/httpd_upload.c
  HttpArgValueSub(), HttpParseMultipartHeader(), StreamReadUntilChars(), StreamReadUntilString(), _close(), _open(), _write(), free(), malloc(), memcpy(), printf(), strncasecmp()
Called by: CgiUpload() nut/app/uhttpd_upload/httpd_upload.c