Tool/software: TI-RTOS
Dear Support Team,
I would like to upload a file (*.txt) to an HTTP sever. Do you have any preferred method for this purpose?
Right now I am using this:
<!DOCTYPE html> <html lang="en"> <body> <form enctype="multipart/form-data" method="POST" name="fileinfo" action="192.168.1.65/file.cgi"> <label>File to stash:</label> <input type="file" name="file" required /> <input type="submit" value="Stash the file!" /> </form> </body> </html>
But the "cgiParseVars()" function can not process the 'name=file' argument well. If I remove the ectype, i got the "file" arg back, but the file content is missing.
Any idea? or suggestion?