HTTPD and file Upload
yvan.godin@REDACTED
yvan.godin@REDACTED
Tue Aug 29 11:52:05 CEST 2000
Hi,
I am looking for ERLANG and HTTPD coding
I got some trouble on the way to upload a file with INETS/HTTPD/MOD_ESI
?
I have try this request:
get(Env,[]) ->
[header(),
top("GET Example"),
"<FORM ACTION=\"/cgi-bin/erl/httpd_example:get\" METHOD=GET
ENCTYPE=\"multipart/form-data\">
<B>Input:</B> <INPUT TYPE=\"text\" NAME=\"input1\">
<INPUT TYPE=\"file\" NAME=\"input2\">
<INPUT TYPE=\"submit\"><BR>
</FORM>" ++ "\n",
bottom()];
this generate the anwser
**********************
blabla.................
Parsed Input:
[{"-----------------------------7d01ef9339d06e6\r\nContent-Disposition:
form-data", []}, {" name",
"\"input1\"\r\n\r\n\r\n-----------------------------7d01ef9339d06e6\r\nContent-
Disposition:
form-data"}, {" name","\"input2\""}, {" filename",
"\"F:\\clean.txt\"\r\nContent-Type: text/plain\r\n\r\nFILE TEXT CONTENT
.............................blabla.................
7d01ef9339d06e6--\r\n"}]
so the content of the file seem mixed in variable content, and is not
decoded
( this seem not usable for large file!)
Does exist another method ?
Is the server abble to deal with multipart form?
thank for anwsers
Yvan GODIN
http://yvan.godin.free.fr
EMail yvan.godin@REDACTED
More information about the erlang-questions
mailing list