[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] (corrected) INPUT TYPE=FILE
- Subject: [cobalt-developers] (corrected) INPUT TYPE=FILE
- From: "V. Peter Stulginskis" <vps@xxxxxxxxxxx> (by way of Gordon Garb)
- Date: Mon Feb 19 18:55:02 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
Greetings,
Anyone have success using the UPLOAD HTML TAG: "INPUT TYPE=FILE" on a RaQ3i.
I want to allow users to upload files using this method. I am currently
running some PHP routines and using MySQL. Everything seems to work fine
but the file never gets sent to the UPLOAD directory, which I changed to:
"/var/tmp"
The code is right from the PHP developers:
<html>
<HEAD><TITLE>FILE UPLOAD</TITLE>
</HEAD>
<BODY>
<? if ($userfile) { ?>
<center>
<h1> Your File: </h1>
<?
echo "File: $userfile<br>";
echo "Remote File: $userfile_name<br>";
echo "Size: $userfile_size<br>";
echo "Type: $userfile_type<br>";
system("./copyfile $userfile_name \"new\".$userfile_name");
}
?>
<FORM ENCTYPE="multipart/form-data" METHOD="POST"
ACTION="http://www.domain.com/upload.php3">
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="100000">
Send this file: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File">
</FORM>
Good Day,
Pete
V. Peter Stulginskis
President: ENDCORP
3751 Mill Run
Terrell, NC. 28682
828-325-8076
828-325-8077(fax)