I have already known how to do that. I have another question:
I have a form with 3 file inputs and an "Attach" button. After click this button, 3 files are attached to the current document. How can I do this using the XWiki action /xwiki/bin/upload ?. I tried but only 1 file is allowed.