use copy() to copy the file to the server.
when you attach the file using the forms. e.g. if the name of field containing file is 'image' then you can use the following global vars to manipulate things.
image_name()
image_size()
image_type()
etc... read php.net manual.