This works brilliantly. Except that where does the filename go? $userfile is the raw file data, but how can you use the filename?
eg
<?
move_uploaded_file($userfile, "../files/filename");
?>
...creates a file called 'filename' in the files directory.
Is there another env variable that contains this? or is it lost once the file is posted? I suppose I could use another field and let the user specify the filename...any thoughts?