Skip to content

Commit

Permalink
fix qr upload page
Browse files Browse the repository at this point in the history
  • Loading branch information
david-loe committed Dec 7, 2023
1 parent f86cf45 commit 823436a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions backend/routes/upload/upload.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Upload</title>
<style>
#button {
.text > * {
font-size: 2rem;
}
#button {
border-radius: 0.5rem;
background-color: rgba(100, 149, 237, 0.2);
border-color: rgba(100, 149, 237, 0.35);
Expand Down Expand Up @@ -37,7 +39,8 @@
<div id="progress"></div>
</div>
<div style="height: 25vh"></div>
<div style="width: 100%; text-align: center">
<div class="text" style="width: 100%; text-align: center">
<div id="text"></div>
<button id="button" role="button"><%= text.tapToUpload %></button>
<form id="form" style="display: none">
<input type="file" id="upload" accept="image/png, image/jpeg, .pdf" multiple />
Expand Down Expand Up @@ -104,6 +107,7 @@
const files = await fileEventToDocumentFiles(event)
if (files) {
document.getElementById('progress').remove()
document.getElementById('button').remove()
document.getElementById('text').innerHTML = '<%= text.uploading %>'
const FD = new FormData()
for (var i = 0; i < files.length; i++) {
Expand Down

0 comments on commit 823436a

Please sign in to comment.