Copy cUploadedFile object to upload->file