let content = fileUploadFileContent.files[0] // it's a bit quirky like that
let filename = fileUploadFileName.value // TODO: again name checking, also on the server side
- console.log(content)
let response = await fetch("/api/files/createWithUpload/" + filename, {
method: "POST",
body: content
--- /dev/null
+
+<html>
+ <head>
+ <link href="/css/index.css" rel="stylesheet" type="text/css">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <link rel="icon" type="image/x-icon" href="/img/favicon.ico">
+ </head>
+
+ <body>
+ </body>
+</html>
+