• Hi all,
    I was able to fix the lost email attachments after I adjusted the “secure attachment file path”. Somehow this does not work anymore for my wordpress setup (job postings V2.5.10).

    
    # Original file: /wp-content/plugins/job-postings/include/class-job-application-submit.php --> line 578
    
    $new_file_location = $filedir .'/' . $filename;
    
    $entry_data['value'] = trailingslashit(get_home_url()) . 'job-postings-get-file/' . $filename;
    $entry_data['path'] = $new_file_location;
    

    Changed to:

    
    $uploads = wp_upload_dir();
    $new_file_location = $uploads['path'] . $filename;
    
    $entry_data['value'] = trailingslashit(get_home_url()) . "/wp-content/uploads/2021/ ". $filename;
    $entry_data['path'] = $new_file_location;

    Explanation: “Secure storage path” does not work for me anymore. Changed it to the uploads folder (plugin saves attachments temporarly there). When GDPR-mode is activated the uploaded files will be deleted after the email is sent.

    Hope it helps someone and the author is able to fix the issue soon. Thank you for the great work.

    • This topic was modified 3 years, 4 months ago by gogosjon.
    • This topic was modified 3 years, 4 months ago by gogosjon.
    • This topic was modified 3 years, 4 months ago by gogosjon.
    • This topic was modified 3 years, 4 months ago by gogosjon.
  • The topic ‘Email attachments get lost (dirty fix)’ is closed to new replies.