Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-127556

[7.3 - backport] As a form adm, I want to allow guest users to upload files when filling out an upload field

    Details

    • Type: Story
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: 7.3.X, 7.3.6 CE GA7
    • Component/s: Forms
    • Labels:
      None

      Description

      As a form admin, I want to allow guest user to upload files when filling out an upload field

      Context

      This limitation in forms is causing some dificulties to some of our clients of previous versions of DXP while using forms. So, to give more value to our customers and make their experience while building forms better, it's important to solve this limitation and give them more tools to provide a better experience to their guest users without compromising security.

      Acceptance Criteria

      1- Given a form admin
      when creating a form with upload field
      then the system should allow the user to choose between allowing or not guest users to upload a file

      2- Given a form admin
      when choosing to allow a guest user to upload files
      then the system should save these files in the form's folder

      • If it is the first uploaded file, the system should create a new folder named ''Forms''.

      3- Given a form guest user
      when answering a upload form field allowed by the form admin
      then the system should allow me to upload a file to the upload field

      4 - Given a form guest user
      when uploading a file in a upload field
      then the system should NOT allow me to see any files from documents and media

      5 - Given an admin user
      when defining forms settings
      then the system should allow me to choose the file types and size of the files that guest users will be able to upload

      • The default size is 25 megabytes
      • The default types are pdf, txt, image (jpeg, jpg, png, tiff) and windows files (xls, xlsx, doc, docx, ppt, pptx)

      6- Given an admin user
      when defining forms settings
      then the system should allow me to choose the limit of times that a guest user can use the upload field in a form

      • The default value is 5 times
      • After the limit the upload field should be disable for the user

      7 - Given a form admin
      when creating a upload field repeatable
      then the system should limitate the number of times the user can repeate the field in the renderer

      • The default maximum number of times the user can repeate the field is 5
      • The admin can change this number in form settings
      • This is due to security reasons

      Side effects care

      • This story can generate side effects on App Builder and on the clients of Data Engine, therefore after finishing each task of this story it's important to execute the tests of these two products and Forms. In order to make easier to run all necessary tests, please run the Data Engine suite (ci:test:data-engine).

      Definition of Done (DoD):

      • All Acceptance Criteria were passed;
      • Make sure that the expected automated tests were created (unit / integration / functional) and passed successfully;
      • Code with peer review completed;
      • Validated by QA, Product Designer and/or PM;
      • No critical bug related to Story scope (ex.: similar of FP4, FP5);
      • Make sure that all system documentation were updated (if necessary)
      • Make sure that it has the extensions points needed to allow GS and customers to customize the feature (If applicable)

       

        Attachments

          Activity

            People

            Assignee:
            luiz.jardim Luiz Jardim
            Reporter:
            luiz.jardim Luiz Jardim
            Engineering Assignee:
            Carolina Barbosa
            Recent user:
            Jason Pince
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                7.3.X
                7.3.6 CE GA7