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

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: Master
    • Component/s: Forms

      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

          Issue Links

          1.
          [BE] Create MVC Action to handle file upload by Guest user LPS-123362 Technical Task Closed Renato Rêgo  
          2.
          [FE] Create new upload field to support the file upload by Guest user LPS-123368 Technical Task Closed Renato Rêgo  
          3.
          [BE] Create new setting on Upload field to enable/disable the file upload by Guest user LPS-123363 Technical Task Closed Carolina Barbosa  
          4.
          [BE] Validate uploaded file LPS-123543 Technical Task Closed Renato Rêgo  
          5.
          [BE] Save signed in users uploaded files in the same folder as guest users LPS-123483 Technical Task Closed Renato Rêgo  
          6.
          [BE] Create new settings related to upload files by Guest user LPS-123491 Technical Task Closed Renato Rêgo  
          7.
          [BE][FE] Limit the number of times the user can repeate the field LPS-123777 Technical Task Closed Renato Rêgo  
          8.
          [BE] Build URL for private users on back-end LPS-123858 Technical Task Closed Renato Rêgo  
          9.
          [FE] Enable button to repeat field for guest users when allowed LPS-124325 Technical Task Closed Carolina Barbosa  
          10.
          [BE][FE] Include tooltip to inform the user about the repetition limit for the upload field LPS-124498 Technical Task Closed Renato Rêgo  
          11.
          [BE] Remove file name validation LPS-124580 Technical Task Closed Carolina Barbosa  
          12.
          Remove guest upload field from Data Engine/App Builder LPS-125175 Technical Task Closed Renato Rêgo  
          13.
          [Poshi] Implement tests LPS-123366 Technical Task Closed Renato Rêgo  
          14.
          [FE] Implement tests LPS-123367 Technical Task Closed Renato Rêgo  
          15.
          [BE] Disable upload field after more than x submissions from the same Guest User LPS-125132 Technical Task Closed Carolina Barbosa  
          16.
          [BE] Create new column to save the IP address during the upgrade process LPS-125267 Technical Task Closed Renato Rêgo  
          17.
          [PM] Review LPS-125449 Technical Task Closed Luiz Jardim  
          18.
          [QA] Design Test Cases LPS-123586 Technical Testing Closed Lucas Neves (Inactive)  
          19.
          [QA] Manual Validation - Round 01 LPS-125460 Technical Testing Closed Cleyton Magalhaes (Inactive)  
          20.
          [PM] Acceptance Criteria LPS-122773 Technical Task Closed Luiz Jardim  
          21.
          [DS] Mockups LPS-122781 Technical Task Closed Felipe Pires (Inactive)  
          22.
          Talk to the technical writer about support for other languages ​​regarding the characters allowed for the file name LPS-124051 Technical Task Closed Bruno Oliveira  
          23.
          [BE] Set a maximun size for the files being uploaded LPS-123364 Technical Task Closed Carolina Barbosa  
          24.
          [BE] Define the supported file extensions LPS-123365 Technical Task Closed Carolina Barbosa  

            Activity

              People

              Assignee:
              support-qa Support QA
              Reporter:
              luiz.jardim Luiz Jardim
              Engineering Assignee:
              SE Support
              Recent user:
              Russell Bohl
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  Master