I get the following message ONLY if I use the gform_upload_path filter:
Warning: copy(http://www.landwire.de/gf_submissions/test/additional-image-sizes-zui.0.1.7.zip) [function.copy]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/www/web116/html/landwire/wp-content/plugins/gravityforms/forms_model.php on line 1669
My code looks like this:
add_filter("gform_upload_path", "change_upload_path", 10, 2);
function change_upload_path($path_info, $form_id) {
$path_info["path"] = "/home/www/web116/html/landwire/gf_submissions/test/";
$path_info["url"] = "http://www.landwire.de/gf_submissions/test/";
return $path_info;
}
Funny thing is, that the files get copied ok to the directory. They are there and work ok. BUT the post image does not show up on the entry, when you view the entries under forms. Neither is it set as a featured image in the post. On another form without post title/featured image, there is no warning message and everything works great. But on both forms I get a 404 when I click on the file under entries:
Not Found
The requested URL /gf_submissions/paranut/additional-image-sizes-zui.0.1.7.zip was not found on this server.
When I do not use the filter everything works fine.
Any help is greatly appreciated!