I got a web page with a form to upload. And my browser only sends the file to my ESP32 if I choose enctype="multipart/form-data" with post method. I wonder why it won't send the file if I use enctype="text/plain". Is that what browsers all do?
Code: Select all
<form action="" method="post" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="100000">
<input type="file" id="myFile" name="filename" class="button" accept=".conf">
<input type="submit" value="Upload" class="button button3">
</form>
Thanks!