#native_company# #native_desc#
#native_cta#

File uploader

By Shannen
on May 13, 2005

Version: dunno

Type: Full Script

Category: Other

License: WebSite Only

Description: Lets all your viewers upload files from your webpage!!

copy and paste this code into your page 
<html>
<head>
<title>File Upload Form</title>
</head>
<body>
This form allows you to upload a file to the server.<br>

<form action="getfile.php" method="post"><br>
Type (or select) Filename: <input type="file" name="uploadFile">
<input type="submit" value="Upload File">
</form>

</body>
</html>
Now we need to process the form, so we must create our "getfile.php" page.  Here we go:

<html>
<head>
<title>Process Uploaded File</title>
</head>
<body>
<?php

move_uploaded_file ($_FILES['uploadFile'] ['tmp_name'], 
       "../uploads/{$_FILES['uploadFile'] ['name']}")

?>
</body>
</html>