<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Change upload path for specific file_upload field 2</title>
		<link>https://legacy.forums.gravityhelp.com/topic/change-upload-path-for-specific-file_upload-field-2</link>
		<description>Gravity Support Forums Topic: Change upload path for specific file_upload field 2</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 20:40:41 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/change-upload-path-for-specific-file_upload-field-2" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Change upload path for specific file_upload field 2"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/change-upload-path-for-specific-file_upload-field-2#post-156000</link>
			<pubDate>Wed, 27 Feb 2013 11:15:18 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">156000@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That's correct. We have not changed how file uploads are processed, and as such, its upload location can't be set through field choices.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gingalley on "Change upload path for specific file_upload field 2"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/change-upload-path-for-specific-file_upload-field-2#post-155988</link>
			<pubDate>Wed, 27 Feb 2013 11:04:32 +0000</pubDate>
			<dc:creator>gingalley</dc:creator>
			<guid isPermaLink="false">155988@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I don't see any update for this hook or any other options in GF Help Forum.&#60;/p&#62;
&#60;p&#62;Is it still impossible to change gform_upload_path based off of the Field ID?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Change upload path for specific file_upload field 2"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/change-upload-path-for-specific-file_upload-field-2#post-36928</link>
			<pubDate>Mon, 03 Oct 2011 16:20:57 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">36928@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The problem is this functionality happens when the form is posted.  The file upload is handled server side. You can't change the path as part of the form post because Gravity Forms handles the file upload and moves the file based on it's own settings, not what is posted.  The only way to change the path is to use the hook I referenced above and currently it only works per form, it can't be used on a field by field basis.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jacobdubail on "Change upload path for specific file_upload field 2"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/change-upload-path-for-specific-file_upload-field-2#post-36927</link>
			<pubDate>Mon, 03 Oct 2011 16:14:59 +0000</pubDate>
			<dc:creator>jacobdubail</dc:creator>
			<guid isPermaLink="false">36927@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Carl,&#60;/p&#62;
&#60;p&#62;What I'm trying to do is change the path for a specific field after the form is submitted but before the form is posted.  Just not sure why my code above wouldn't work.&#60;/p&#62;
&#60;p&#62;Is there a hook I can use to change the $form data after the change_upload_path but before POST?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Jacob
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Change upload path for specific file_upload field 2"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/change-upload-path-for-specific-file_upload-field-2#post-36923</link>
			<pubDate>Mon, 03 Oct 2011 16:09:09 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">36923@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Currently the upload path can only be changed site wide or form wide, the hook doesn't currently support per field.  The hook is documented here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_upload_path&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_upload_path&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I'll check with our lead developer if this can be done on a field by field basis.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jacobdubail on "Change upload path for specific file_upload field 2"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/change-upload-path-for-specific-file_upload-field-2#post-36911</link>
			<pubDate>Mon, 03 Oct 2011 14:35:30 +0000</pubDate>
			<dc:creator>jacobdubail</dc:creator>
			<guid isPermaLink="false">36911@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No love?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jacobdubail on "Change upload path for specific file_upload field 2"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/change-upload-path-for-specific-file_upload-field-2#post-36507</link>
			<pubDate>Wed, 28 Sep 2011 17:44:45 +0000</pubDate>
			<dc:creator>jacobdubail</dc:creator>
			<guid isPermaLink="false">36507@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey guys,&#60;/p&#62;
&#60;p&#62;I would have replied to the previous thread, but it was closed...&#60;/p&#62;
&#60;p&#62;I'm trying to hijack the form POST to change the file upload path of one field.  Just before submission, I can get the path to change properly, but I'm assuming after it posts, the upload path is hijacked again by the form.&#60;/p&#62;
&#60;p&#62;Here's what I have so far:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;#39;gform_post_data_1&#38;#39;, &#38;#39;ebooks_review_book&#38;#39;, 10, 2);
	function ebooks_review_book($form) {

		$img    = $form[&#38;#39;images&#38;#39;][0][&#38;#39;url&#38;#39;];
		$img    = explode(&#38;#39;/&#38;#39;, $img);
		$img    = $img[sizeof($img)-1];

		$form[&#38;#39;images&#38;#39;][0][&#38;#39;url&#38;#39;]                    = content_url() . &#38;#39;/uploads/books/&#38;#39; . $img;

		echo &#38;quot;&#38;lt;pre&#38;gt;&#38;quot;;
		print_r( $form );
		echo &#38;quot;&#38;lt;/pre&#38;gt;&#38;quot;;

		exit;
		//return $form;
	}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Is there a hook I can use to make this work?  One that runs after &#60;code&#62;change_upload_path&#60;/code&#62;, but before the file is actually moved?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
jacob
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
