Wow, thanks for the quick response... I will read the docs, and my confidence level is rather low at the moment, can't figure out where to add the code to change the GForm upload path. Thinking of just doing this for the moment and manually adding until I can try what you wrote above. Tried it in the child theme functions and all went white. Is this where I should be adding it?
Specifying for one form only...
[php]
<?php
add_filter("gform_upload_path_1", "change_upload_path", 10, 2);
function change_upload_path($path_info, $form_id){
$path_info["path"] = "/uploads/docs/";
$path_info["url"] = "http://mysite/uploads/docs/";
return $path_info;
}
?>
Am I way off :).
Thanks!
Posted 12 years ago on Thursday June 28, 2012 |
Permalink