Re: Get images or binary files from web form

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu