Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WP CMS Ninja

    (@billiardgreg)

    So are you talking about when a person is logged in and editing something like their profile? Then when they save and upload a file through that profile update form you are trying to get the image in an attachment with that notification?

    Thread Starter alex chidiac

    (@alex-chidiac)

    I’m talking about how gravity forms gives you the option to save and continue.
    When the user clicks save and continue you have the option of sending a notification. I was wanting to have the attachment sent in that save and continue notification.

    Plugin Author WP CMS Ninja

    (@billiardgreg)

    I am going to have to test a multi-step form to see what triggers happen and such. As this plugin has only been tested with a single page submit and done form. The filter that is being called in this plugin is

    add_filter('gform_notification', 'GFUEA_custom_notification_attachments', 10, 3);

    so I would think that this would get fired whenever a notification is to be sent out via email. It does this by checking the notification name for the keyword.

    substr($notification["name"],-5) == "GFUEA"

    So it appears that the save and continue notification doesn’t send out using the same notification style. I attempted to rewrite it to see if the $notification[“name”] == “Save and Continue Email” and add the attachment to the $notification variable and it just doesn’t attach it.

    It looks like Gravity Forms save and continue functionality doesn’t set the correct mime-content-type or process attachments when using this feature. Although the image is still saved to the server for when they go back to the form so with at least that notification it isn’t needed. On the final submit of the form it still attaches the image as it should to the final notification email.

    I will try to see if I can find a way to do this but I think this falls outside of the scope of this plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘uploads to attachements when form is saved’ is closed to new replies.