Hi,
I'm trying to upload files from a subdomain to the primary domain. So the upload form is on the domain admin.mySite.com and I'm trying to upload the files to www.mySite.com/files/
Here's my script.
<?php
if (is_uploaded_file($_FILES['Filedata']['tmp_name'])) {
$uploadDirectory = "http://www.mySite.com/files/";
$uploadFile = $uploadDirectory . basename($_FILES['Filedata']['name']);
copy($_FILES['Filedata']['tmp_name'], $uploadFile);
}
?>