• Resolved Jonathan Kingsbury

    (@ridinhighspeeds)


    Is there a way to prevent attachments from being uploaded to the /wpcf7-submissions directory? The main reason is that some of these files contain confidential information, which we don’t want accessible to the public.

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author jasongreen

    (@jasongreen)

    Hi @ridinhighspeeds

    Have you considered adding a rule to your .htaccess file which prevents access to the directory? That way you still have a backup but they’re stored securely.

    Alternatively you could use the following filter to disable saving that particular field.

    apply_filters('wpcf7s_submission_fields', $submission_fields, $form_id);

    Hope this helps.

    Jason

Viewing 1 replies (of 1 total)
  • The topic ‘Remove Attachments from wpcf7-submissions’ is closed to new replies.