<?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: Gform upload path and not adding to media gallery</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gform-upload-path-and-not-adding-to-media-gallery</link>
		<description>Gravity Support Forums Topic: Gform upload path and not adding to media gallery</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 04:54:57 +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/gform-upload-path-and-not-adding-to-media-gallery" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Gform upload path and not adding to media gallery"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform-upload-path-and-not-adding-to-media-gallery#post-136379</link>
			<pubDate>Wed, 30 Jan 2013 10:48:45 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">136379@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That hook wouldn't have access to the user name, so you would have to write another script to global the username and pass it to this hook for use as part of the path name creation, but that is beyond what we can do here in support.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>watersmartinnovations on "Gform upload path and not adding to media gallery"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform-upload-path-and-not-adding-to-media-gallery#post-135509</link>
			<pubDate>Tue, 29 Jan 2013 17:55:21 +0000</pubDate>
			<dc:creator>watersmartinnovations</dc:creator>
			<guid isPermaLink="false">135509@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Will that scripting allow you to dynamically create a folder based on user name?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Gform upload path and not adding to media gallery"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform-upload-path-and-not-adding-to-media-gallery#post-130728</link>
			<pubDate>Thu, 24 Jan 2013 21:11:33 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">130728@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That hook has the form ID available to it as $form_id. So, you could do something like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_filter(&#38;quot;gform_upload_path&#38;quot;, &#38;quot;change_upload_path&#38;quot;, 10, 2);
function change_upload_path($path_info, $form_id){
    $path_info[&#38;quot;path&#38;quot;] = &#38;quot;/fullpath/var/www/website/artwork/&#38;quot; . $form_id . &#38;quot;/&#38;quot;;
    $path_info[&#38;quot;url&#38;quot;] = &#38;quot;http://www.superwideprints.co.uk/artwork/&#38;quot;. $form_id . &#38;quot;/&#38;quot;;
    return $path_info;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That would put them into the correct folder with the form ID at least.  They were never in month and day.  WordPress uploads are always in Year and Month.  Gravity Forms adds the special folder based on the form ID and a random string.&#60;/p&#62;
&#60;p&#62;I'm not sure if Gravity Forms will create a non-existent root folder when it first goes to store an upload.  If not, you'd have to figure out how to ensure the folder exists first.  If you do not have a lot of forms, you can create all the upload folders one time before you use the form, so the upload folder is there.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jacko_162 on "Gform upload path and not adding to media gallery"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform-upload-path-and-not-adding-to-media-gallery#post-124416</link>
			<pubDate>Thu, 17 Jan 2013 11:09:40 +0000</pubDate>
			<dc:creator>Jacko_162</dc:creator>
			<guid isPermaLink="false">124416@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;or even better adding the &#34;form name&#34; as a sub folder as well as date and day?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jacko_162 on "Gform upload path and not adding to media gallery"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform-upload-path-and-not-adding-to-media-gallery#post-124414</link>
			<pubDate>Thu, 17 Jan 2013 11:04:51 +0000</pubDate>
			<dc:creator>Jacko_162</dc:creator>
			<guid isPermaLink="false">124414@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;yes complete path worked great.&#60;/p&#62;
&#60;p&#62;although it doesn't sort them into month and day anymore.&#60;/p&#62;
&#60;p&#62;can this be added?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Gform upload path and not adding to media gallery"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform-upload-path-and-not-adding-to-media-gallery#post-124400</link>
			<pubDate>Thu, 17 Jan 2013 10:44:13 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">124400@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;On line 4, I would use a complete path rather than a relative path, just to make sure it's going where you want.&#60;/p&#62;
&#60;p&#62;Does the folder exist in that location already?  What are the permissions of the folder and the parent folder?  The error there is that the upload folder could not be created.  Please create the folder in the proper location with the proper permissions and see if you can upload a small file.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jacko_162 on "Gform upload path and not adding to media gallery"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform-upload-path-and-not-adding-to-media-gallery#post-124375</link>
			<pubDate>Thu, 17 Jan 2013 09:58:46 +0000</pubDate>
			<dc:creator>Jacko_162</dc:creator>
			<guid isPermaLink="false">124375@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;ok i added the following to my theme functions.php file;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//Changing Upload PATH
	add_filter(&#38;quot;gform_upload_path&#38;quot;, &#38;quot;change_upload_path&#38;quot;, 10, 2);
	function change_upload_path($path_info, $form_id){
   		$path_info[&#38;quot;path&#38;quot;] = &#38;quot;../../artwork/&#38;quot;;
   		$path_info[&#38;quot;url&#38;quot;] = &#38;quot;http://www.superwideprints.co.uk/artwork/&#38;quot;;
   return $path_info;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;in the cart where it preview the image uploaded i get the following link to the image;&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.superwideprints.co.uk/cart/FAILED%20(Upload%20folder%20could%20not%20be%20created.)&#34; rel=&#34;nofollow&#34;&#62;http://www.superwideprints.co.uk/cart/FAILED%20(Upload%20folder%20could%20not%20be%20created.)&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Gform upload path and not adding to media gallery"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform-upload-path-and-not-adding-to-media-gallery#post-124368</link>
			<pubDate>Thu, 17 Jan 2013 09:42:58 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">124368@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Actually, it goes in your theme's Functions.php file. All my best!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jacko_162 on "Gform upload path and not adding to media gallery"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform-upload-path-and-not-adding-to-media-gallery#post-124352</link>
			<pubDate>Thu, 17 Jan 2013 09:15:31 +0000</pubDate>
			<dc:creator>Jacko_162</dc:creator>
			<guid isPermaLink="false">124352@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;no haven't seen that,&#60;/p&#62;
&#60;p&#62;do i just add that to the forms_model.php without removing anything?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Gform upload path and not adding to media gallery"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform-upload-path-and-not-adding-to-media-gallery#post-124344</link>
			<pubDate>Thu, 17 Jan 2013 09:03:13 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">124344@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Have you already tried using the gform_upload_path filter?&#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;</description>
		</item>

	</channel>
</rss>
