I'm not sure what you are doing, so I don't know. It is as if you are referring to a form element from a different page or form, but I can't tell you how or why.
Just make sure when you apply the file upload, that the name of the upload field you specify in the server behavior matches the name of the upload field on the page.