multimodalart HF Staff commited on
Commit
6f058fb
·
1 Parent(s): 64031c1

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +20 -16
index.html CHANGED
@@ -1,19 +1,23 @@
1
  <!DOCTYPE html>
2
  <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
19
  </html>
 
1
  <!DOCTYPE html>
2
  <html>
3
+ <body>
4
+
5
+ <h1>Folder Upload Demo</h1>
6
+
7
+ <p>Drag and drop a folder, or click to select a folder:</p>
8
+
9
+ <input type="file" id="folderUpload" webkitdirectory directory multiple />
10
+
11
+ <script>
12
+ document.getElementById('folderUpload').addEventListener('change', function(e) {
13
+ const files = e.target.files; // FileList object
14
+
15
+ // loop through the FileList and print details
16
+ for (let i = 0, f; f = files[i]; i++) {
17
+ console.log('File:', f.webkitRelativePath);
18
+ }
19
+ });
20
+ </script>
21
+
22
+ </body>
23
  </html>