im trying to change the path for uploading and I keep getting these 2 errors.
this happens after the script is done loading the file using ajax.
Warning: Missing argument 2 for change_upload_path()
then it redirects to the post and I get this error where my picture is suppose to be.
<img src="FAILED (Upload folder could not be created.)">
and this is the code im using...
add_filter("gform_upload_path_2", "change_upload_path", 10, 2);
function change_upload_path($path_info, $form_id){
$path_info["path"] = "/public_html/pics";
$path_info["url"] = "http://www.mysite.com/pics/";
return $path_info;
}
I dont know but ive tried many different ways and I keep getting those errors. And I have both files on 755