--=====================_87407894==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed
hello !
Does file upload works with Xitami?
I use this sample file as request for upload:
<html><head></head>
<body bgcolor=white>
<form action=http://web.verfaillie.com/cgi-bin/env.exe method=post>
<input type=file name="123.txt"><br>
<input type=submit value="Send">
</form>
</body></html>
The scripts executes correctly (env.exe only prints the windows
environment) but where can i find the uploaded file???
Thats the back-end VB program:
Sub main()
Open "c:\test.txt" For Output Access Write As #1
Print #1, "start"
a$ = Environ$("CGI_STDOUT")
Open a$ For Output Access Write As #3
Print #3, "<html><body><pre>"
a$ = Environ$(1)
While a$ <> ""
Print #3, a$; "<br>"
Print #1, a$
i = i + 1
a$ = Environ$(i)
Wend
Print #3, "</body></html>"
Close
End
End Sub
--=====================_87407894==_.ALT
Content-Type: text/html; charset="us-ascii"
<html>
hello !<br>
<br>
Does file upload works with Xitami?<br>
<br>
I use this sample file as request for upload:<br>
<br>
<html><head></head><br>
<body bgcolor=white><br>
<form action=http://web.verfaillie.com/cgi-bin/env.exe
method=post><br>
<input type=file name="123.txt"><br><br>
<input type=submit value="Send"><br>
</form><br>
</body></html><br>
<br>
The scripts executes correctly (env.exe only prints the windows
environment) but where can i find the uploaded file???<br>
<br>
<br>
Thats the back-end VB program:<br>
<br>
Sub main()<br>
Open "c:\test.txt" For Output Access Write
As #1<br>
Print #1, "start"<br>
a$ = Environ$("CGI_STDOUT")<br>
Open a$ For Output Access Write As #3<br>
Print #3,
"<html><body><pre>"<br>
a$ = Environ$(1)<br>
While a$ <> ""<br>
Print #3, a$;
"<br>"<br>
Print #1, a$<br>
i = i + 1<br>
a$ = Environ$(i)<br>
Wend<br>
Print #3, "</body></html>"<br>
Close<br>
End<br>
End Sub<br>
<br>
</html>
--=====================_87407894==_.ALT--