AadityaPawarx1 commited on
Commit
1c8429c
·
verified ·
1 Parent(s): e8eb1ce

Upload 23 files

Browse files
website/home.html CHANGED
@@ -44,6 +44,13 @@
44
  <input type="file" id="fileInput" multiple
45
  style="height: 0px; width: 0px; border: none; position: absolute" />
46
  <hr />
 
 
 
 
 
 
 
47
  <div id="url-upload-btn">
48
  <img src="static/assets/link-icon.svg" />
49
  URL Upload
 
44
  <input type="file" id="fileInput" multiple
45
  style="height: 0px; width: 0px; border: none; position: absolute" />
46
  <hr />
47
+ <div id="folder-upload-btn">
48
+ <img src="static/assets/folder-icon.svg" />
49
+ Folder Upload
50
+ </div>
51
+ <input type="file" id="folderInput" webkitdirectory directory multiple
52
+ style="height: 0px; width: 0px; border: none; position: absolute" />
53
+ <hr />
54
  <div id="url-upload-btn">
55
  <img src="static/assets/link-icon.svg" />
56
  URL Upload
website/static/js/sidebar.js CHANGED
@@ -39,6 +39,10 @@ document.getElementById('file-upload-btn').addEventListener('click', () => {
39
  document.getElementById('fileInput').click()
40
  });
41
 
 
 
 
 
42
  // New File Upload End
43
 
44
  // New Folder Start
 
39
  document.getElementById('fileInput').click()
40
  });
41
 
42
+ document.getElementById('folder-upload-btn').addEventListener('click', () => {
43
+ document.getElementById('folderInput').click()
44
+ });
45
+
46
  // New File Upload End
47
 
48
  // New Folder Start