<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>File Uploads With AJAX</title>
</head>
<body>
<form id="file-form" action="fileUpload.php" method="post" enctype="multipart/form-data">
Upload a File:
<input type="file" id="myfile" name="myfile">
<input type="submit" id="submit" name="submit" value="Upload File Now" >
</form>
<p id="status"></p>
<script type="text/javascript" src="fileUpload.js"></script>
</body>
</html>
Code language: HTML, XML (xml)