As the title suggests, what is the best way to upload a file in an HTML website and where does that file do after it is uploaded?
I would like to upload a file to an HTML website (that I create and host locally), then I would like that uploaded file to be stored in the same directory as the index.html
file of my website.
How can that be accomplished with something like this:
<html>
<body>
<form>
<p>
Specify your File:<br>
<input type="file">
</p>
<div>
<input type="submit" value="Submit">
</div>
</form>
</body>
</html>
UPDATE (CLARIFICATION): My index.html and related files are located in (and are accessible from) a network drive. I would like any files uploaded to appear in the same directory (or subdirectory) of that network drive.
Thank you in advance for your help!