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;
}
'