Forum Moderators: coopster
form.html
<form action='process.php' method='post' enctype='multipart/form-data'>
<input type='file' accept='image/png' name='image'>
</form>
process.php
$filedata = $_FILES['image'];
$tempfile = $filedata['tmp_name'];if(is_uploaded_file($tempfile)) {
$destfile = "/var/www/html/".$filedata['name]; //Linux formatif(move_uploaded_file($tempfile, $destfile)) {
echo "File moved to $destfile";
}
else
{
echo "File cannot be moved to $destfile";
}
} else {
echo "No uploaded file!";
}
Something like this. Hope this helps
eelix