3 Replies Latest reply on Feb 18, 2015 2:14 AM by gopi.gorantala

    Upload field creation

    gopi.gorantala

      Hi,

       

      My requirement is to create an upload field to upload docs(pdf and etc) in my dynamic form.

       

      Let me know if this is feasible and also help me how can i achieve this in a simple way.

       

      Thanks,

      -Gopi.

        • Re: Upload field creation

          You need to provide more information here

          How are you creating your form? Is it in a plugin or addon?

          Where do you want to upload the file to?

            • Re: Upload field creation
              gopi.gorantala

              Hi Nils,


              I have created it through plugin.

               

              My Plugin after deploying, it displays a "Custom Form" Link in my Username/Avatar drop-down(Under Personal Settings section). Now, I have to add an upload field to allow our application users to attach their proposal file(pdf/doc etc). I want to understand how can this be achieved in simple way? Which is the ideal place to store the uploaded file?

               

              Thanks,

              -Gopi.

                • Re: Upload field creation
                  gopi.gorantala

                  I fixed the upload field issue and my custom form is now saving all the text fields along with the uploaded file type and file name etc.

                   

                  Create a upload field in ftl, through action class pull the name, type and file and redirect to success page using struts.xml and write a dao class to load the file and its attributes into database.

                  Thanks,

                  -Gopi.

                  1 person found this helpful