Powerup init includes this:
Code: Select all
if ( EnableMultiPartForms( 5000000 ) ) // enable get the file over webpage.
{
RegisterSpecialLongFile("fw", SpecialFileReader); // register a callback function to read the update fw.
}
"File did not upload correctly"
"Stream update failure"
The file size argument of EnableMultiPartForms is confusing. In the example it's set to 10k, but the s19 file size is 356k. My app is 4.4M. So I'm not sure what that means. I don't think this is the problem, since the upload fails regardless of the value.
At the top of my post handler is this:
Code: Select all
if ( httpstricmp(url+1,"FWUPLOAD.HTM") == 1 )
{
#ifdef _DEBUG_SECURE_REPRO
puts( "FW Reprog" );
#endif
reprogram(sock, url, data, rxbuf);
return 0;
}
What did I miss?
I'm using v2.9.5 of the tools.