Fabulous Real Estate Photo

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • in reply to: Snippet Not Working to Delete Entries Reply
    Fabulous Real Estate Photo
    Customer

    Forgot to paste the error message in the trash area.

    “There has been a critical error on this website. Please check your site admin email inbox for instructions.”

    in reply to: Direct to S3 File Path Reply
    Fabulous Real Estate Photo
    Customer

    That is it. Everything works and we can close out this ticket!

    in reply to: Direct to S3 File Path Reply
    Fabulous Real Estate Photo
    Customer

    Thank you so much!

    in reply to: Direct to S3 File Path Reply
    Fabulous Real Estate Photo
    Customer

    How do I get access to the entry data in the file path array? If I wanted to do the path as “{Job ID:20}/{filename}” how would I pull that from the $entry array?

    add_filter( ‘syncs3_put_object_file_path’, ‘customize_syncs3_path’, 10, 6 );
    /**
    * Custom logic to set the bucket name in SyncS3 for Gravity Forms
    *
    * @param string $path File path to return. Make sure the path ends with $file_name.
    * @param string $file Local file URL when uploaded
    * @param string $file_name Name of uploaded file
    * @param int $field_id ID of the fileupload field
    * @param int $form_id ID of the form
    * @param array $entry Entry data
    *
    * @return string Bucket name
    */
    function customize_syncs3_path( $path, $file, $file_name, $field_id, $form_id, $entry ) {
    // Custom logic
    $path = “testing/new/{$file_name}”; // Make sure the new path includes the file name
    return $path;
    }

    in reply to: Direct to S3 File Path Reply
    Fabulous Real Estate Photo
    Customer

    Then that should be fine. We have enough storage to keep it temporarily on our WP Engine account. Where do I turn that setting on?

    Then I should be able to use the other snippet of code to do file paths, correct?

    in reply to: Direct to S3 File Path Reply
    Fabulous Real Estate Photo
    Customer

    Is there a way to have it so that once the files are on S3 they are removed from local storage?

    in reply to: Direct to S3 File Path Reply
    Fabulous Real Estate Photo
    Customer

    Ideally we would love to pull a form field into the naming and have something like /{Job ID:20}/{filename}, but we would take /{entryID}/{filename} if we can get that working.

Viewing 7 posts - 1 through 7 (of 7 total)
Your Cart
Your cart is currently empty.
Open Cart