~cytrogen/gstack

ref: cd66fc2f890982351e3178925be563681d0ab2c5 gstack/browse/test/fixtures/upload.html -rw-r--r-- 849 bytes
cd66fc2f — Garry Tan fix: 6 critical fixes + community PR guardrails (v0.13.2.0) (#602) 15 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Test Page - Upload</title>
</head>
<body>
  <h1>Upload Test</h1>
  <input type="file" id="file-input" />
  <input type="file" id="multi-input" multiple />
  <p id="upload-result"></p>
  <script>
    document.getElementById('file-input').addEventListener('change', function(e) {
      const files = e.target.files;
      const names = Array.from(files).map(f => f.name).join(', ');
      document.getElementById('upload-result').textContent = 'Uploaded: ' + names;
    });
    document.getElementById('multi-input').addEventListener('change', function(e) {
      const files = e.target.files;
      const names = Array.from(files).map(f => f.name).join(', ');
      document.getElementById('upload-result').textContent = 'Multi: ' + names;
    });
  </script>
</body>
</html>