Skip to content
Snippets Groups Projects
Commit 8a369105 authored by Sergey Lyubka's avatar Sergey Lyubka
Browse files

Moved file upload example to separate dir

parent 56d12c89
No related branches found
No related tags found
No related merge requests found
# Copyright (c) 2014 Cesanta Software
# All rights reserved
PROG = file_upload
CFLAGS = -W -Wall -I../.. $(CFLAGS_EXTRA)
SOURCES = $(PROG).c ../../mongoose.c
all: $(PROG)
./$(PROG)
$(PROG): $(SOURCES) Makefile
$(CC) -o $(PROG) $(SOURCES) $(CFLAGS)
win:
wine cl $(SOURCES) /MD /nologo /DNDEBUG /O1 /I../.. /Fe$(PROG).exe
wine $(PROG).exe
clean:
rm -rf $(PROG) *.exe *.dSYM *.obj *.exp .*o *.lib *.gc*
......@@ -15,7 +15,6 @@ static int send_index_page(struct mg_connection *conn) {
"<form method=\"POST\" action=\"/handle_post_request\" "
" enctype=\"multipart/form-data\">"
"<input type=\"file\" name=\"file\" /> <br/>"
"<input type=\"text\" name=\"input1\" value=hello! /> <br/>"
"<input type=\"submit\" value=\"Upload\" />"
"</form>");
......
......@@ -2,7 +2,7 @@
// All rights reserved
//
// This example demostrates basic use of Mongoose embedded web server.
// $Date: 2014-09-09 21:47:07 UTC $
// $Date: 2014-09-09 22:20:23 UTC $
#include <stdio.h>
#include <string.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment