martinayotte wrote:Make sure that all extra args are within the same HTML FORM than the upload file field and that you have a single submit.
Hmmm, not really a lot to my form. I just modified the one generated by the SD Web Server code:
<form id="uploadForm" action="/edit" method="post" enctype="multipart/form-data">
<input type="text" name="dir" id="uploadDir" value="/" />
<br />
<input type="file" name="upload" id="fileUpload">
<br>
<input type="submit" value="Upload File" name="submit">
</form>
I've decided to try it out myself, and effectively, the onFileUpload handler doesn't show any args.
I don't know if ESP8266WebServer could be modified easily to support that during onFileUpload.