Support » Plugin: Contact Form 7 Signature Addon » Signature Uploads with 400 File Permission / IMG SRC does not work

  • Hello,

    When the Signature.png file is created on the server, it is automatically given inaccessible file permission of 400.

    This results in the IMG SRC link “” to fail in emails. I have to manually log into my CPANEL or through FTP and change it each time before it gets auto-deleted.

    I spoke to my web host and they said it is the Plugin that sets it as 400.

    Is there a way to resolve this? The Signature is not usable until it is.

Viewing 1 replies (of 1 total)
  • I have answered and solved my own support question:

    This is the file that sets the permissions:

    /wp-content/plugins/contact-form-7-signature-addon/includes/class-wpcf7-signature-mail.php

    LINE: 163

    // Writing signature
    if ( $handle = @fopen( $filepath, ‘w’ ) ) {
    fwrite( $handle, $decoded_image );
    fclose( $handle );
    @chmod( $filepath, 0400 ); // Make sure the uploaded file is only readable for the owner process
    }

    With the CHMOD set to 0400, the image does not embed/attach to the email.

    Can this be updated in future versions so that the server permissions do not block the embedded of the signature?

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