• Resolved dan382

    (@dan382)


    A little while I ago I changed the image upload directory per the advice given here:
    https://www.ads-software.com/support/topic/change-uploaded-file-location/

    Since then I’ve updated the plugin and the change made to the core directory no longer works as its been overridden.

    I tried re-uploading the change but couldn’t recall where it went originally. I guessed the contact-form-submissions.php file but that doesn’t seem to have done the job.

    Any ideas?

Viewing 1 replies (of 1 total)
  • Plugin Author jasongreen

    (@jasongreen)

    Hi

    I would recommend against hacking any plug-in to make custom modifications if you want to update it in the future.

    To change the location for attachments you can use a WordPress filter. Here is a snippet of my source code:

    $upload_dir = wp_upload_dir();
    $wpcf7s_dir = apply_filters('wpcf7s_dir', $upload_dir['basedir'] .'/wpcf7-submissions');

    Regards

    Jason

Viewing 1 replies (of 1 total)
  • The topic ‘Change uploaded file location’ is closed to new replies.