3 Replies Latest reply on May 23, 2008 11:54 PM by antonio

    File upload on seam

    antonio

      How can I update a file to my server using seam?


      Tanks
      cheers


        • 1. Re: File upload on seam
          jnusaira

          It's actually pretty easy.


          Use s:fileupload


          <s:fileUpload data="#{collectionTag.infile}" fileName="#{collectionTag.fileName}" id="fileloader" />
          



          Where the infile is going to be an inputstream and the fileName is the name of the file. I believe there are more options check the pdf and search for fileUpload. (collectionTag in this example is a SFSB)

          • 2. Re: File upload on seam
            dan.j.allen

            <s:fileUpload>


            see seamspace in examples directory of distribution for a working example.


            Please try to ask more specific questions in the future. This question shows that you didn't really look into it before asking about it.

            • 3. Re: File upload on seam
              antonio

              Tanks a lot!


              Ok I'll try to be more specific in the future