Re: Get images or binary files from web form
- Posted by jmduro Aug 09, 2022
- 2404 views
Sorry, I was too quick. When displaying the real length of the received file the error appears:
nBytes = getenv("CONTENT_LENGTH") query = get_bytes(0, to_number(nBytes)) printf(1, "%s: %d\n", {"%d bytes received", length(query)} )
%d bytes received: 482 AUTH_TYPE: Undefined CONTENT_TYPE: multipart/form-data; boundary=----WebKitFormBoundary8MhqlWPqRLSpCl9f CONTENT_LENGTH: 1159310
allow_break(0) doesn't change anything to the result.
Jean-Marc