you can retrieve the parameter from the multipart request object. If you 'need' the parameter before the file itself, for example, the parameter shows where to upload the file to, what
you should do is upload to a temporary directory and retrieve the file path later, and then use the File i/o classes to move that file. This is the recommended behaviour if you read the cos faq.