PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Change image upload from file upload

  1. sdesigns
    Member

    I have change the directory that the file gets uploaded to but is there a way to have it so the image upload goes to another directory that is different than the one the file is going to?

    '
    add_filter("gform_upload_path_2", "change_upload_path", 10, 2);
    function change_upload_path($path_info, $form_id){
    $path_info["path"] = "/public_html/wp-content/plugins/s2member-files/submitted/";
    $path_info["url"] = "http://domain.com.com/wp-content/plugins/s2member-files/submitted/";
    return $path_info;
    }
    '

    Posted 11 years ago on Monday June 10, 2013 | Permalink