Those attributes are not supported in witango. You can do the same
thing, if you parse the raw contents of the post data on your own. I
believe there is an example, of at least how to get the file name. I
am not sure you could get type or size via the headers, since witango
doesn't give you access to the headers in the upload request. You
would have to use @length and filename extension, which work, but not
as reliable.
--
Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040
[EMAIL PROTECTED] - [EMAIL PROTECTED]
http://bighead.net/ - http://eventpix.com/
On Apr 29, 2008, at 11:38 AM, [EMAIL PROTECTED] wrote:
Hi. I'm trying to get access to the file data in witango such as
similar to the following in php
<form action="upload_file.php" method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file" />
<br />
<input type="submit" name="submit" value="Submit" />
</form>
PHP CODE:
echo "Upload: " . $_FILES["file"]["name"] . "<br />";
echo "Type: " . $_FILES["file"]["type"] . "<br />";
echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
echo "Stored in: " . $_FILES["file"]["tmp_name"];
thanks
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf