Doing an HTTP Upload twice
Posted: Wed Oct 17, 2018 5:26 pm
Hello,
I want to send a file from the Http Upload directly to an SoftSerial Port. For that purpose I need to know the exact size of the file because before starting to send the file i have to send the size of it.
I think there is nothing in the library to read the exact file size. So i thought about uploading the file twice.
At first upload i want only to check the size of it. Afterwards i want to start a second upload and send it via SoftSerial to an nextion Display.
The first upload is initiated by choosing the file in an file dialog and then pushing a button on the http page.
So how can i start the second upload without klicking any button on the http page ? Should work automatically after the first upload is done.
best regards Iksi
I want to send a file from the Http Upload directly to an SoftSerial Port. For that purpose I need to know the exact size of the file because before starting to send the file i have to send the size of it.
I think there is nothing in the library to read the exact file size. So i thought about uploading the file twice.
At first upload i want only to check the size of it. Afterwards i want to start a second upload and send it via SoftSerial to an nextion Display.
The first upload is initiated by choosing the file in an file dialog and then pushing a button on the http page.
So how can i start the second upload without klicking any button on the http page ? Should work automatically after the first upload is done.
best regards Iksi