3 Replies Latest reply on Aug 20, 2009 11:50 AM by toppac

    fileUpload with metadata

      Is it possible to make the fileupload component submit additional meta data captured in an inputText field? From the documentation I can not see a way to do this but I wanted to see if anyone had a good method of doing it.

        • 1. Re: fileUpload with metadata
          ilya_shaikovsky

          you want just to submit the whole form on submit? you could use onupload handler in order to call normal form submit(api in FU documentation) with file upload and return false to prevent standard behavior.

          • 2. Re: fileUpload with metadata

            That is exactly what I want to do Ilya. I'll have to read over the documentation more to see how to do this. Thanks!

            • 3. Re: fileUpload with metadata

              Just a bit more clarification. The onupload allows me to call a javascript function, where I could then submit the form? I assume this would be a separate request from the one handling the uploading of the document? I am trying to figure out if I need to store the reference to the uploaded file that would then be accessed by the second request to attach meta data.

              I know you're busy but could you provide a quick code example?