File Upload

 

upload($tmpFile, ‘Publoaded’);

echo ‘File successfully uploaded to my Dropbox!‘;
mail(‘[email protected]’, ‘File Uploaded to Dropbox’, “{$_FILES[‘file’][‘name’]} from {$_SERVER[‘REMOTE_ADDR’]}”);
} catch(Exception $e) {
echo ‘Error: ‘ . htmlspecialchars($e->getMessage()) . ‘‘;
}

// Clean up
if (isset($tmpFile) && file_exists($tmpFile))
unlink($tmpFile);

if (isset($tmpDir) && file_exists($tmpDir))
rmdir($tmpDir);
}
?>

File
 Posted by at 11:16 pm

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)