I've created a form with Post Fields that takes an image upload, but it's not getting uploaded to the proper folder and not appearing in the Media Library.
I've redirected the file upload path:
add_filter("gform_upload_path", "change_upload_path", 10, 2);
function change_upload_path($path_info, $form_id){
// debug for absolute path
//$path = getcwd();
//echo "This Is Your Absolute Path: ";
//echo $path;
$path_info["path"] = " /home2/domain/public_html/wp-content/uploads/";
$path_info["url"] = "http://www.domain.com/wp-content/uploads/";
return $path_info;
}
The receiving folder has 777 permissions and I've disabled month/day sorting of uploads. I'm not sure what else could be wrong.