- Code: Select all
<?php
$uploaddir = './uploads/';
$file = basename($_FILES['userfile']['name']);
$uploadfile = $uploaddir . $file;
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
echo "http://iphone.zcentric.com/uploads/{$file}";
}
?>
I moved this script to an http protected folder and I have changed the app code to upload using authentication, it says the file is uploaded but it isn't. Do I have to change the php script to allow authenticated files?
Thanks in advance
Mike

