• Resolved creationell

    (@creationell)


    Dear support team,
    we are from europe and looking for a way to make forminator form subscriptions GDPR conform.
    We found possibility in settings to change the path for some custom path for saving uploads and it is cool.
    What we can’t find is the setting for immediately deleting uploaded files after the notifing email was sent to admin. WeI’ve searched the forum and found this thread with some mu plugins for that (2 years ago).
    https://www.ads-software.com/support/topic/delete-attached-files-from-media-folder-after-form-has-been-submitted/

    Is it the only way to delete those files, or is there some settings in back end that we missed?

    Thanks a lot for all your work.

    Cheers,
    Anton

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @creationell

    I hope you are doing well today.

    Please try this solution as a mu-plugin:
    https://gist.github.com/wpmudev-sls/7a32dc5407324cc902f8b9ad8970ef62

    You will need to change

    $form_ids = array( 2910, 2911 );

    to

    $form_ids = array( 123 );

    where 123 is your form ID.

    Here is a guide that can help: https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/

    We recommend either creating a full backup initially or testing it on a staging website.

    Kind Regards,
    Kris

    Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @creationell

    We haven’t heard from you in a while, I’ll go and mark this thread as resolved. If you have any additional questions or require further help, please let us know!

    Kind Regards,
    Kris

    Thread Starter creationell

    (@creationell)

    Dear support team,

    After following the instructions and completing each step (https://gist.github.com/wpmudev-sls/7a32dc5407324cc902f8b9ad8970ef62), we are still at the point where the uploaded files are not immediately deleted after the notification email. This means the forminator plugin isn’t?GDPR conform.

    Is there possibly a solution for this, or have there been simular problems with this MU plugin where it did not work correctly?

    Thanks in advance!

    Kind Regards,

    Lucy

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @creationell

    Thank you for response!

    I just tested this code on my end to make sure and it worked as expected.

    Could you please check a few additional things?

    1. In this line

    $form_ids = array( 2910, 2911 );

    double-check if correct form ID is set; the one given in my colleague’s response was just example so you need to check the number in forms shortcode – that’s the ID which you need to set in that line

    2. edit e-mail notifications for the form and set “Attachments” option in there to “None” instead of “uploaded files” and then check if after form submission you have uploaded file actually attached to the message (an entire file and not just URL); if not – it would suggest that the code is not even executed properly

    3. if there is attachment (so the code is executed) please check “Upload” field settings on the form and see if you have “Show files in media library” option enabled there. If it is enabled – you need to disable it because the code will delete file from the Forminator storage but despite that a copy added to Media Library will stay there in Media Libray

    Kind regards,
    Adam

    Thread Starter creationell

    (@creationell)

    @wpmudev-support8
    Thank you very much Adam. It helped.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.