Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

pfrick on "Change upload location in Gravity Forms"

$
0
0

So I am having trouble saving uploaded files to a specific directory when using Gravity Forms. I have tried a solution that is posted commonly:

add_filter("gform_upload_path_3", "upload_path", 10, 2);

function change_upload_path($path_info){

	$path_info["path"] = "/public_html/wp-content/themes/[theme]/PDF_EXTENDED_TEMPLATES/output/";
	$path_info["url"] = "[host_url]/public_html/wp-content/themes/rays/PDF_EXTENDED_TEMPLATES/output/';

	return $path_info;
}

The issue however is that I cannot get the uploads to save beyond /public_html. I have tried setting the permissions to 777 but have not been successful.

Any suggestions of how to make this work?


Viewing all articles
Browse latest Browse all 8245

Trending Articles