WordPress.org

Ready to get started?Download WordPress

Forums

WP Document Revisions
Crypting No Files (1 post)

  1. lowerpower
    Member
    Posted 9 months ago #

    Hello Ben,

    first of all let me thank you for your genious wp document revision tool. It's working properly and doing all the things it should do.

    With one exception:) Your 3rd Party En-/Decryption Hooking Point. I've installed [Plugin: Gravitate Encryption] for crypting sensitive files in the upload folder. Therefore I used your description like this: `

    <?php 
    
    function wpdr_encrypt( $attachment ) {
    
            //get path to attached file
            $file = get_attached_file( $attachment->ID );
    
         if(class_exists('GDS_Encryption_Class'))
    {
        GDS_Encryption_Class::encrypt( $file );
    }
    
    }
    
    add_action( 'document_upload', 'wpdr_encrypt' );
    
    function wpdr_decrypt( $file ) {
    
         if(class_exists('GDS_Encryption_Class'))
    {
        GDS_Encryption_Class::decrypt($file);
    }
    
    }
    
    add_action( 'serve_document', 'wpdr_decrypt' );
    
    ?>

    But nothing really happens. The file is uploaded on server without any encryption work. May you have the leisure to help me in that case. That would be glad. Many thanks in advance, lp.

    http://wordpress.org/plugins/wp-document-revisions/

Reply

You must log in to post.

About this Plugin

About this Topic