That's good to hear, thank you for your help. Trying that url gives me
{
"files": [],
"free": 58407620608,
"total": 62811418624
}
I have managed to get a file upload to work using a test gcode, putting "M117" in the gcode section.
In the multipart/form-data
I have the gcode buffer converted to to string:
msg.req.files[0].buffer.toString()
where msg.req.files[0].buffer
is:
[59,32,103,101,110,101,114,97,116,101,100,32,98,121,32,83,108,105,99,51,114,32,80,114,117,115,97,32,69,100,105,116,105,111,110,32,49,46,52,49,46,51,43,32,111,110,32,50,48,49,57,45,48,52,45,48,56,32,97,116,32,49,50,58,50,54,58,49,52,10,10,59,32,10,10,59,32,101,120,116,101,114,110,97,108,32,112,101,114,105,109,101,116,101,114,115,32,101,120,116,114,117,115,105,111,110,32,119,105,100,116,104,32,61,32,48,46,52,53,109,109,10,59,32,112,101,114,105,109,101,116,101,114,115,32,101,120,116,114,117,115,105,111,110,32,119,105,100,116,104,32,61,32,48,46,52,53,109,109,10,59,32,105,110,102,105,108,108,32,101,120,116,114,117,115,105,111,110,32,119,105,100,116,104,32,61,32,48,46,52,53,109,109,10,59,32,115,111,108,105,100,32,105,110,102,105,108,108,32,101,120,116,114,117,115,105,111,110,32,119,105,100,116,104,32,61,32,48,46,52,53,109,109,10,59,32,116,111,112,32,105,110,102,105,108,108,32,101,120,116,114,117,115,105,111,110,32,119,105,100,116,104,32,61,32,48,46,52,48,109,109,10,59,32,102,105,114,115,116,32,108,97,121,101,114,32,101,120,116,114,117,115,105,111,110,32,119,105,100,116,104,32,61,32,48,46,52,50,109,109,10,10,77,55,51,32,80,48,32,82,57,57,10,77,55,51,32,81,48,32,83,49,48,48,10,77,50,48,49,32,88,49,48,48,48,32,89,49,48,48,48,32,90,49,48,48,48,32,69,53,48,48,48,32,59,32,115,101,116,115,32,109,97,120,105,109,117,109,32,97,99,99,101,108,101,114,97,116,105,111,110,115,44,32,109,109,47,115,101,99,94,50,10,77,50,48,51,32,88,50,48,48,32,89,50,48,48,32,90,49,50,32,69,49,50,48,32,59,32,115,101,116,115,32,109,97,120,105,109,117,109,32,102,101,101,100,114,97,116,101,115,44,32,109,109,47,115,101,99,10,77,50,48,52,32,80,49,50,53,48,32,82,49,50,53,48,32,84,49,50,53,48,32,59,32,115,101,116,115,32,97,99,99,101,108,101,114,97,116,105,111,110,32,40,80,44,32,84,41,32,97,110,100,32,114,101,116,114,97,99,116,32,97,99,99,101,108,101,114,97,116,105,111,110,32,40,82,41,44,32,109,109,47,115,101,99,94,50,10,77,50,48,53,32,88,56,46,48,48,32,89,56,46,48,48,32,90,48,46,52,48,32,69,49,46,53,48,32,59,32,115,101,116,115,32,116,104,101,32,106,101,114,107,32,108,105,109,105,116,115,44,32,109,109,47,115,101,99,10,77,50,48,53,32,83,48,32,84,48,32,59,32,115,101,116,115,32,116,104,101,32,109,105,110,105,109,117,109,32,101,120,116,114,117,100,105,110,103,32,97,110,100,32,116,114,97,118,101,108,32,102,101,101,100,32,114,97,116,101,44,32,109,109,47,115,101,99,10,77,49,48,55,10,77,49,49,53,32,85,51,46,53,46,49,32,59,32,116,101,108,108,32,112,114,105,110,116,101,114,32,108,97,116,101,115,116,32,102,119,32,118,101,114,115,105,111,110,10,77,56,51,32,32,59,32,101,120,116,114,117,100,101,114,32,114,101,108,97,116,105,118,101,32,109,111,100,101,10,77,49,48,52,32,83,50,49,53,32,59,32,115,101,116,32,101,120,116,114,117,100,101,114,32,116,101,109,112,10,77,49,52,48,32,83,54,48,32,59,32,115,101,116,32,98,101,100,32,116,101,109,112,10,77,49,57,48,32,83,54,48,32,59,32,119,97,105,116,32,102,111,114,32,98,101,100,32,116,101,109,112,10,77,49,48,57,32,83,50,49,53,32,59,32,119,97,105,116,32,102,111,114,32,101,120,116,114,117,100,101,114,32,116,101,109,112,10,71,50,56,32,87,32,59,32,104,111,109,101,32,97,108,108,32,119,105,116,104,111,117,116,32,109,101,115,104,32,98,101,100,32,108,101,118,101,108,10,71,56,48,32,59,32,109,101,115,104,32,98,101,100,32,108,101,118,101,108,105,110,103,10,71,49,32,89,45,51,46,48,32,70,49,48,48,48,46,48,32,59,32,103,111,32,111,117,116,115,105,100,101,32,112,114,105,110,116,32,97,114,101,97,10,71,57,50,32,69,48,46,48,10,71,49,32,88,54,48,46,48,32,69]
Converting it to a string gives me a string which appears readable but evidently not so to octoprint