Re: Get images or binary files from web form
- Posted by jmduro Aug 09, 2022
- 2424 views
getc is not affected by the problem so here is the work-around:
nBytes = getenv("CONTENT_LENGTH") query = {} for n = 1 to to_integer(nBytes) do integer c = getc(0) query = append(query, c) end for -- query = get_bytes(0, to_number(nBytes)) printf(1, "%d bytes received\n", {length(query)} )
1159310 bytes received AUTH_TYPE: Undefined CONTENT_TYPE: multipart/form-data; boundary=----WebKitFormBoundaryba4L3niknxAhwapL CONTENT_LENGTH: 1159310
Jean-Marc