Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: html post

From: javierd:paralax:mx at: 7-Aug-2002 11:54

>Yes, if you are sending files and not just data from the browser, >because DECODE-CGI does not handle them. I think you will find the >code to handle file uploads in the Script Library. (Maybe others >can point you to the right script to look at.)
The "easier" code i found in the library use the decode-cgi function... and requires enctype="multipart/form-data" So, if i understand the process. i should set the port to binay, and read the data form the port? the code i found is: input-cgi: func [/stdin] [ stdin: make string! 15000 either system/options/cgi/request-method = "POST" [ read-io system/ports/input stdin 15000 return stdin ][ system/options/cgi/query-string ] ] Is this correct?. should I set the string to the maximum size i will expect?.. in this case about 2 MB... now, how is this data formated?, where i can found this info, so i could parse it..? I looks interesting... Javier Delgado Paralax Multimedia www.paralax.com.mx Interactivos, kioscos, sites, web hosting, video 3d, animacion 3d, anaglifos tel 5373 3620 y 5363 4953 Naucalpan de Juarez, Edo. Mex. tambien visite: http://www.kaliman.com.mx http://www.paralax.com.mx/javier