mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 10:52:47 +00:00
changed file uploads
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
<div class="container">
|
||||
|
||||
<form action="/newpost" method="post" enctype="multipart/form-data" class="form-file">
|
||||
<form enctype="multipart/form-data" class="form-file">
|
||||
<h2 class="text-center">Submit New Post</h2>
|
||||
<br>
|
||||
<input type="password" class="form-control" name="key" placeholder="Key" required>
|
||||
@@ -26,22 +26,18 @@
|
||||
|
||||
<br>
|
||||
|
||||
<button class="btn btn-lg btn-primary btn-block" type="submit">Submit</button>
|
||||
<button id="newpost-form" class="btn btn-lg btn-primary btn-block" type="submit">Submit</button>
|
||||
|
||||
<br>
|
||||
|
||||
<%
|
||||
if (typeof message != 'undefined'){ %>
|
||||
|
||||
<div class="text-center colorRed"><%=message%></div>
|
||||
|
||||
<%}%>
|
||||
<div id="response" class="text-center colorRed"></div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal"><!-- Place at bottom of page --></div>
|
||||
</body>
|
||||
|
||||
<% include layoutBottom.ejs %>
|
||||
<% include layoutBottom.ejs %>
|
||||
<script src="/javascript/upload.js"></script>
|
||||
Reference in New Issue
Block a user