mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-27 11:56:17 +00:00
Moved all image controlls to one file
Added option to add tags on upload Working on .env support
This commit is contained in:
parent
b6dc491257
commit
3847020ae7
11 changed files with 349 additions and 283 deletions
|
@ -22,6 +22,9 @@
|
|||
var alt = $("#alt").val();
|
||||
formData.append("alt", alt);
|
||||
// Get ALT
|
||||
var tags = $("#tags").val();
|
||||
formData.append("tags", tags);
|
||||
// Submit data
|
||||
var submit = $("#submit").val();
|
||||
formData.append("submit", submit);
|
||||
|
||||
|
@ -71,6 +74,7 @@
|
|||
<form id="uploadSubmit" class="flex-down between" method="POST" enctype="multipart/form-data">
|
||||
<input id="image" class="btn btn-neutral" type="file" placeholder="select image UwU">
|
||||
<textarea id="alt" class="btn btn-neutral" placeholder="Description/Alt for image" rows="3"></textarea>
|
||||
<textarea id="tags" class="btn btn-neutral" placeholder="Tags, seperated by white-space" rows="3"></textarea>
|
||||
<br>
|
||||
<button id="submit" class="btn btn-good" type="submit"><img class="svg" src="assets/icons/upload.svg">Upload Image</button>
|
||||
</form>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue