File Type: Multiple Uploads

  • paulchicago74
    Participant
      # 3 months ago

      How do I upload multiple files? What is the file type I should use?

    • laravel-bap
      Keymaster
        # 3 months ago

        HI,

        1. I guess it’s about forms. Snippet below.

        2. In “Attachments” module added by “HasAttachment” trait multiple file upload is by default.

      • paulchicago74
        Participant
          # 2 months, 1 week ago

          Thanks. Do I need to create the module again to select “true” to attachments or I can change somewhere in my Module folder? Where is the HadAttachment trait is located?

        • laravel-bap
          Keymaster
            # 2 months, 1 week ago

            Hi,

            In Generated module HasAttachment is used. Multi file-upload is out of the box as attachments.

            HasAttachment trait is on Entity in module.

            If You want to add file field directly to create/edit form. Then You need to add file field to form (located in ../Htp/Forms/…Your Form).
            User module in Platform is example of file directly in Form.
            Please check /Modules/Platform/User module – check form and user controller.

          You must be logged in to reply to this topic.