Да будет код...
This commit is contained in:
29
index.html
Normal file
29
index.html
Normal file
@@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<script src="lib_chunk_file.js"></script>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<input type="file" name="file_name">
|
||||
|
||||
|
||||
<script>
|
||||
const fileInput = document.querySelector('input[type="file"]');
|
||||
|
||||
fileInput.addEventListener('change', (event) => {
|
||||
|
||||
const files = event.target.files;
|
||||
const file = files[0]
|
||||
if (file) {
|
||||
uploadFileInChunks(file);
|
||||
}else{
|
||||
alert("no file")
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user