Chat freely about anything...

User avatar
By treii28
#53742 I'm running into another issue now. I check server.args and I'm not getting any parameters now that I've added extra input (text) fields to the form. Do I have to do something different to get the other parameters on the form?
User avatar
By treii28
#53788
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:

Code: Select all<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>
User avatar
By martinayotte
#53808 You're right !
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.