29 lines
649 B
HTML
29 lines
649 B
HTML
<!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> |