aboutsummaryrefslogtreecommitdiffstats
path: root/test/sample-post.html
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-04-06 19:24:02 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-04-06 19:24:02 +0200
commitc0453c34a58aac8150300ab829149a0ca4d9e5ee (patch)
tree615f1fc4efe819af7d0518c7cdddf754dfb62b87 /test/sample-post.html
parente6298876fdbf457b6dd61556472060a9fa652c82 (diff)
upload of files
Change-Id: Ifbe226ddc11f67223b4215db66af1ad1108a11f5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'test/sample-post.html')
-rw-r--r--test/sample-post.html13
1 files changed, 9 insertions, 4 deletions
diff --git a/test/sample-post.html b/test/sample-post.html
index c9decdcb..337df97b 100644
--- a/test/sample-post.html
+++ b/test/sample-post.html
@@ -3,8 +3,13 @@
<title>Sample Post test</title>
<body>
<h1>Sample Post test</h1>
+ <form enctype="multipart/form-data">
+ <input type="file" name="file" />
+ <input type="hidden" name="hidden" value="bollobollo" />
<ol>
- <li><a href="api/post/upload-json">upload json</a>
- <li><a href="api/post/upload-image">upload json</a>
- <li><a href="api/post/upload-music">upload json</a>
- <li><a href="api/post/upload-appli">upload json</a>
+ <li><button formmethod="POST" formaction="api/post/ping">ping</button>
+ <li><button formmethod="POST" formaction="api/post/upload-json">upload json</button>
+ <li><button formmethod="POST" formaction="api/post/upload-image">upload image</button>
+ <li><button formmethod="POST" formaction="api/post/upload-music">upload music</button>
+ <li><button formmethod="POST" formaction="api/post/upload-appli">upload application</button>
+ </form>