diff --git a/examples/file_upload/Makefile b/examples/file_upload/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..d4a074fbee9085076057eef53928d59146fa45a8 --- /dev/null +++ b/examples/file_upload/Makefile @@ -0,0 +1,19 @@ +# 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* diff --git a/examples/upload.c b/examples/file_upload/file_upload.c similarity index 95% rename from examples/upload.c rename to examples/file_upload/file_upload.c index 2737ba98345a1c76d7c8b435bb07a2c0a19e1c6d..f0c6a1a42380aec60d268e5a89b1b84baa865972 100644 --- a/examples/upload.c +++ b/examples/file_upload/file_upload.c @@ -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>"); diff --git a/examples/hello_world/hello_world.c b/examples/hello_world/hello_world.c index 5fae28c5ea0a17a69a177a8db81dbeb0fc6829f4..95056895d027b7b2dfc1cb44d618fc8a083a2fc2 100644 --- a/examples/hello_world/hello_world.c +++ b/examples/hello_world/hello_world.c @@ -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>