..
Printable View
..
You only need the folder chmodded on a linux server, it just works on a windows one afaik.
To make it work with files up to 100mb you need to have your host enable php to accept that big of files.
Here's a basic code (upload.php):
PHP Code:
<?php
if ($_REQUEST['do']=='upload')
{
if (move_uploaded_file($_FILES['uploadedfile']['tmp_name'], 'c:/www/uploads/'.basename($_FILES['uploadedfile']['name'])))
{
//Successful
}
else
{
//Not successful
}
}
else
{
?>
<form enctype="multipart/form-data" action="upload.php?do=upload" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<input type="file" name="uploadedfile" />
<input type="submit" value="Upload!" />
</form>
<?php
}
?>
This should get you started but remember there's more checks you'll need to do like file extension, file size, etc.Quote:
Originally Posted by php.net
To just get info on what was uploaded try
If you need more info let me know what you want exactly and I can help.PHP Code:
print_r($_FILES);
..