ikraamkb commited on
Commit
4bca93a
·
verified ·
1 Parent(s): f504a20

Update static/application.js

Browse files
Files changed (1) hide show
  1. static/application.js +2 -2
static/application.js CHANGED
@@ -8,8 +8,8 @@ document.addEventListener("DOMContentLoaded", () => {
8
  let selectedFile = null;
9
  let filePreviewBubble = null;
10
  // Hidden file inputs
11
- const fileUpload = document.getElementById('file-upload');
12
- const imageUpload = document.getElementById('image-upload');
13
 
14
  // Create separate input elements for documents and images
15
  const docInput = document.createElement("input");
 
8
  let selectedFile = null;
9
  let filePreviewBubble = null;
10
  // Hidden file inputs
11
+ const fileUpload = document.querySelector(".fa-file");
12
+ const imageUpload = document.querySelector(".fa-image");
13
 
14
  // Create separate input elements for documents and images
15
  const docInput = document.createElement("input");