diff options
Diffstat (limited to 'src/main/resources')
-rw-r--r-- | src/main/resources/views/upload.html | 16 | ||||
-rw-r--r-- | src/main/resources/views/upload.rocker.html | 8 |
2 files changed, 8 insertions, 16 deletions
diff --git a/src/main/resources/views/upload.html b/src/main/resources/views/upload.html deleted file mode 100644 index 16c8a94..0000000 --- a/src/main/resources/views/upload.html +++ /dev/null @@ -1,16 +0,0 @@ -<!doctype html> -<html lang="en"> -<head> - <meta charset="UTF-8"> - <meta content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" - name="viewport"> - <meta content="ie=edge" http-equiv="X-UA-Compatible"> - <title>Upload Testing</title> -</head> -<body> -<form action="/api/upload?dir=test" enctype="multipart/form-data" method="post"> - <input multiple name="files" type="file"> - <button>Submit</button> -</form> -</body> -</html> diff --git a/src/main/resources/views/upload.rocker.html b/src/main/resources/views/upload.rocker.html new file mode 100644 index 0000000..441a570 --- /dev/null +++ b/src/main/resources/views/upload.rocker.html @@ -0,0 +1,8 @@ +@args (String content) + +@layout.template("Upload") -> { +<form action="/api/upload?dir=test" enctype="multipart/form-data" method="post"> + <input multiple name="files" type="file"> + <button>Submit</button> +</form> +} |