Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #928666

    Hallo,
    ich möchte ein Kontaktformular erstellen, dass es den Kunden ermöglicht, mir 3 Fotos zu schicken. Gibt es dafür eine Uploadfunktion?
    Liebe Grüße – Birgit

    ________________

    Hello,
    I want to create a Contactform with the option to upload 3 images. Is there an uploadfunction for clients?
    Best regards – Birgit

    #928705

    i believe CF7 got this option but i would like to warn you about that. You have to know how to prevent attacks
    cf7 for example has an upload limit and a file-type field – so you can choose what files are allowed to upload.

    Some Infos on that ( first i found via Goolge – but Inet is full of warnings)
    File Upload Forms are a Major Security Threat
    https://www.acunetix.com/websitesecurity/upload-forms-threat/

    #928709

    On Contact Form 7 you can define a tmp path to the folder where the images are saved temporarly via wp-config.php:
    define( 'WPCF7_UPLOADS_TMP_DIR', '/your/file/path' );
    this is nice to have because you can secure that folder via htaccess and secure advices in the net.
    cf7 did on that uploads dir a htaccess on default – i did change it to

    deny from all
    <Files ~ “^w+.(gif|jpe?g|png|pdf)$”>
    order deny,allow
    allow from all
    </Files>

    see here: https://contactform7.com/file-uploading-and-attachment/

    #928721

    Thank you Guenni, for your answer and your time! A lot of warnings… Mh, thats complicated.
    I think about a diffrent methode. Simple eMail? But then, my questions to the clients are not answered precisely.

    Best regards – Birgit

    #929691

    Hi,

    What do you mean by “simple email”? Unfortunately, the theme doesn’t have this option by default. The suggestion above is probably the easiest way to implement the feature.

    Best regards,
    Ismael

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