Hi,
I try the to upload a file to the server. I run Apache 1.3 and mod_dtcl on a
Windows system. The FORM is
upload1.html:
<html>
<body>
<form action=upload2.ttml enctype="multipart/form-data" method=post>
<input type=file name="MyUpload">
<input type=submit>
</from>
</body>
</html>
the selected file ("a.txt", a simple text file) is processed using
upload2.ttml:
<html>
<body>
<?
puts "var all: [var all]<br>"
puts "upload names: [upload names]<br>"
puts "upload exists: [upload info MyUpload exists]<br>"
puts "upload names: [upload names]<br>"
puts "upload size: [upload info MyUpload size]<br>"
puts "upload type: [upload info MyUpload type]<br>"
puts "upload filename: [upload info MyUpload filename]<br>"
puts "upload save: [upload get MyUpload save c:/temp/upload_[clock
seconds].dat]<br>"
?>
</body>
</html>
The resulting page gives an error:
var all: MyUpload {C:\temp\a.txt}
upload names: MyUpload
upload exists: 1
upload names: MyUpload
upload size: 1840
upload type: text/html
upload filename: C:\temp\a.txt
----------------------------------------------------------------------------
----
bad file number
invoked from within
"upload get MyUpload save c:/temp/upload_[clock seconds].dat"
(in namespace eval "::request" script line 15)
invoked from within
"namespace eval request {
buffer_add "<html>
<body>
"
puts "var all: [var all]<br>"
puts "upload names: [upload names]<br>"
puts "upload ..."
I get a similar error when using "upload get MyUpload channel" when
accessing the returned file handle.
Does anybody know, what I do wrong?
Best regards
Holger
____________________________________________________________________
|
| Holger Zeinert - Development Manager CAE Division
|____________________________________________________________________
| LMS Deutschland GmbH - tel +49 631 4166-180, fax -166
| Luxemburger Str. 7, 67657 Kaiserslautern, GERMANY
| mailto:[EMAIL PROTECTED] http://www.lmsintl.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]