[git commit] Make POST upload example script easier to use

Denys Vlasenko vda.linux at googlemail.com
Thu Dec 22 14:33:11 UTC 2016


commit: https://git.busybox.net/busybox/commit/?id=5d27cb364020f46e9dcd14f30d58c25e94e9b33b
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 .../{httpd_post_upload.txt => httpd_post_upload.cgi} | 20 +++++++-------------
 1 file changed, 7 insertions(+), 13 deletions(-)

diff --git a/networking/httpd_post_upload.txt b/networking/httpd_post_upload.cgi
old mode 100644
new mode 100755
similarity index 84%
rename from networking/httpd_post_upload.txt
rename to networking/httpd_post_upload.cgi
index 9d504f4..e4ffd2b
--- a/networking/httpd_post_upload.txt
+++ b/networking/httpd_post_upload.cgi
@@ -1,18 +1,12 @@
-POST upload example:
-
-post_upload.htm
-===============
-<html>
-<body>
-<form action=/cgi-bin/post_upload.cgi method=post enctype=multipart/form-data>
-File to upload: <input type=file name=file1> <input type=submit>
-</form>
-
-
-post_upload.cgi
-===============
 #!/bin/sh
 
+# post_upload.htm example:
+# <html>
+# <body>
+# <form action=/cgi-bin/httpd_post_upload.cgi method=post enctype=multipart/form-data>
+# File to upload: <input type=file name=file1> <input type=submit>
+# </form>
+
 # POST upload format:
 # -----------------------------29995809218093749221856446032^M
 # Content-Disposition: form-data; name="file1"; filename="..."^M


More information about the busybox-cvs mailing list