Uploaded image for project: 'Magnolia Mail Module'
  1. Magnolia Mail Module
  2. MGNLMAIL-111

Mail module sending attachments with the tmp fileName instead of original

XMLWordPrintable

    • Maintenance 47
    • 3

      Description

      When sending an attachment (e.g, at the contact form of travel site), a tmp file is created locally (at tmp folder) and when the attachment is prepared for being sent, the filename of that tmp file is taken instead of original filename uploaded at the file field.

      E.g: At the Contact Form, include a File Field and name it as fileToSend (check fieldName.png image).

      Now fill the form, select and attachment and send the email.

      Check that the info.magnolia.module.mail.templates.MgnlMultipartEmail.addAttachment method sets as fileName the name of the file stored at the tmp folder (check debug1.png and debug2.png images).

      Expected results

      The filename is the original name of the file attached at the file field of the contact form

      Actual results

      The filename is a mix of the FIELDNAME followed of a number and the extension of the file is also changed from original to TMP

      Workaround

      N/A

      DEV notes

      N/A

       

        Acceptance criteria

          1. debug1.png
            debug1.png
            629 kB
          2. debug2.png
            debug2.png
            711 kB
          3. fieldName.png
            fieldName.png
            46 kB

              thien.quach Quach Hao Thien
              ccantalapiedra Carlos Cantalapiedra
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 1.25d
                    1.25d