Mercurial Hosting > freedit
comparison src/test/upload.html @ 33:4fdc4ec0050b
upload with uploadcare
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 01 Aug 2022 22:50:16 -0600 |
parents | |
children | c8d47981c74f |
comparison
equal
deleted
inserted
replaced
32:72a1b77b4548 | 33:4fdc4ec0050b |
---|---|
1 <!doctype html> | |
2 <html> | |
3 <head> | |
4 <meta name="viewport" content="width=device-width, initial-scale=1"> | |
5 <style> | |
6 @import "/site.css"; | |
7 </style> | |
8 <script src="/site.js"></script> | |
9 <script> | |
10 function gotFile(input) { | |
11 let file = input.files[0]; | |
12 //console.log(file); | |
13 //console.log(file instanceof File); | |
14 ajax("upload.js",file); | |
15 } | |
16 </script> | |
17 </head> | |
18 <body> | |
19 <div content> | |
20 <p>top</p> | |
21 <p> | |
22 <label clickable | |
23 ><input type=file xaccept="image/*" onchange="gotFile(this)" | |
24 ><span inline_button>Upload File</span> | |
25 </label> | |
26 </p> | |
27 <p><a></a></p> | |
28 <p>bottom</p> | |
29 </div> | |
30 </body> | |
31 </html> |