<?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: How do I have user generated image uploads to specific folder in media library?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-have-user-generated-image-uploads-to-specific-folder-in-media-library</link>
		<description>Gravity Support Forums Topic: How do I have user generated image uploads to specific folder in media library?</description>
		<language>en-US</language>
		<pubDate>Fri, 03 Apr 2026 19:14:33 +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/how-do-i-have-user-generated-image-uploads-to-specific-folder-in-media-library" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "How do I have user generated image uploads to specific folder in media library?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-have-user-generated-image-uploads-to-specific-folder-in-media-library#post-34753</link>
			<pubDate>Wed, 07 Sep 2011 17:38:39 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">34753@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@mavellino, we are going to ignore the date dropdown question here.  Start a new topic for that with a link to your form, and in what browser you see the problem.&#60;/p&#62;
&#60;p&#62;Regarding the previous post:&#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;Yes that code block.  You need all that in a &#38;lt;?php section of your theme's functions.php&#60;/li&#62;
&#60;li&#62;Line 4 will be the full path on the server to your folder.&#60;/li&#62;
&#60;li&#62;Line 5 will be the URL where you can access that folder.  The end part will be the same&#60;/li&#62;
&#60;li&#62;Yes, you need to create the folder first.  You are telling Gravity Forms where the folder is, but it will not create it.&#60;/li&#62;
&#60;/ul&#62;
&#60;p&#62;Please ask if you need additional help with this.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mavellino on "How do I have user generated image uploads to specific folder in media library?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-have-user-generated-image-uploads-to-specific-folder-in-media-library#post-34747</link>
			<pubDate>Wed, 07 Sep 2011 16:45:48 +0000</pubDate>
			<dc:creator>mavellino</dc:creator>
			<guid isPermaLink="false">34747@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Also, my form does not display the date dropdown box. It is cut off.  Any reason why?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mavellino on "How do I have user generated image uploads to specific folder in media library?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-have-user-generated-image-uploads-to-specific-folder-in-media-library#post-34745</link>
			<pubDate>Wed, 07 Sep 2011 16:42:57 +0000</pubDate>
			<dc:creator>mavellino</dc:creator>
			<guid isPermaLink="false">34745@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris, I spoke too soon!&#60;br /&#62;
Do you mean this code block?&#60;br /&#62;
&#38;lt;?php&#60;br /&#62;
2	add_filter(&#34;gform_upload_path&#34;, &#34;change_upload_path&#34;, 20, 2);&#60;br /&#62;
3	function change_upload_path($path_info, $form_id){&#60;br /&#62;
4	   $path_info[&#34;path&#34;] = &#34;/new/path/&#34;;&#60;br /&#62;
5	   $path_info[&#34;url&#34;] = &#34;http://new_url.com/images/&#34;;&#60;br /&#62;
6	   return $path_info;&#60;br /&#62;
7	}&#60;br /&#62;
8	?&#38;gt;&#60;br /&#62;
If yes, I am still confused as to where I input my folder name and do I set the folder up first and where? I know to add my ford id # after the path. I know not to copy the line numbers in.  Sorry, I am a newbie, but these directions are a little vague and I don't know where to type my information in the code.&#60;br /&#62;
Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mavellino on "How do I have user generated image uploads to specific folder in media library?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-have-user-generated-image-uploads-to-specific-folder-in-media-library#post-34743</link>
			<pubDate>Wed, 07 Sep 2011 16:29:47 +0000</pubDate>
			<dc:creator>mavellino</dc:creator>
			<guid isPermaLink="false">34743@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "How do I have user generated image uploads to specific folder in media library?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-have-user-generated-image-uploads-to-specific-folder-in-media-library#post-34713</link>
			<pubDate>Wed, 07 Sep 2011 14:22:39 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">34713@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The path will contain the form ID in it, so you can keep uploads organized by form.  But that is not related at all to categories.&#60;/p&#62;
&#60;p&#62;There's more to the code that just that one line though.  Please take a look at &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_upload_path&#34; rel=&#34;nofollow&#34;&#62;this page&#60;/a&#62; of the documentation and refer to the last code block.&#60;/p&#62;
&#60;p&#62;Also, be sure you do not paste in the line numbers as you did in your previous post.&#60;/p&#62;
&#60;p&#62;Finally, the 10, 2 means run with a priority of 10 (default) and 2 are the number of arguments the function will accept.  You can read more about this at &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/add_filter#Usage&#34; rel=&#34;nofollow&#34;&#62;wordpress.org&#60;/a&#62;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mavellino on "How do I have user generated image uploads to specific folder in media library?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-have-user-generated-image-uploads-to-specific-folder-in-media-library#post-34708</link>
			<pubDate>Wed, 07 Sep 2011 13:17:52 +0000</pubDate>
			<dc:creator>mavellino</dc:creator>
			<guid isPermaLink="false">34708@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If I understand correctly, the path will stay with the form I created, therefore I do not have to associate the images with the post category.&#60;br /&#62;
So I insert this code exactly as you see it here into my functions.php file?&#60;/p&#62;
&#60;p&#62;1	&#38;lt;?php&#60;br /&#62;
2	add_filter(&#34;gform_upload_path&#34;, &#34;upload_path&#34;, 10, 2);&#60;br /&#62;
3	?&#38;gt;&#60;/p&#62;
&#60;p&#62;Please let me know if I have to change anything.  What does the 10,2 mean?&#60;br /&#62;
Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "How do I have user generated image uploads to specific folder in media library?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-have-user-generated-image-uploads-to-specific-folder-in-media-library#post-33548</link>
			<pubDate>Thu, 25 Aug 2011 11:20:25 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">33548@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;1.  Yes, you would add this to the functions.php file in your current theme.&#60;/p&#62;
&#60;p&#62;2. No you do not need to create the folder in the media library.  The folder doesn't even have to be in the media library.&#60;/p&#62;
&#60;p&#62;Regarding the category id, that is a more complex customization.  By default, Gravity Forms stores the uploads in folders like this: wp-content/uploads/gravity_forms/$form_ID/YEAR/MM/upload.jpg&#60;/p&#62;
&#60;p&#62;Can you explain more about what you want to do any why they need to be separated into folders by post category?  Maybe that will help someone come up with a solution for you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mavellino on "How do I have user generated image uploads to specific folder in media library?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-have-user-generated-image-uploads-to-specific-folder-in-media-library#post-33309</link>
			<pubDate>Tue, 23 Aug 2011 13:01:04 +0000</pubDate>
			<dc:creator>mavellino</dc:creator>
			<guid isPermaLink="false">33309@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes, I am talking about the post category id that the form content creates.   So if I understand this correctly, I need to edit the theme functions.php file with the code you mentioned?  Do I need to create the folder in the media library first for the images?  Please give me step by step instructions on how to do this.&#60;br /&#62;
Thanks :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "How do I have user generated image uploads to specific folder in media library?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-have-user-generated-image-uploads-to-specific-folder-in-media-library#post-33215</link>
			<pubDate>Mon, 22 Aug 2011 14:35:29 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">33215@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What do to mean &#34;to an id&#34;?  They need to be stored in folders by some sort of unique ID, or form ID or post ID?  What is the ID?  Or will the ID be part of the file name?&#60;/p&#62;
&#60;p&#62;Because it's PHP code, you will insert the gform_upload_path code into functions.php.&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mavellino on "How do I have user generated image uploads to specific folder in media library?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-have-user-generated-image-uploads-to-specific-folder-in-media-library#post-33207</link>
			<pubDate>Mon, 22 Aug 2011 13:10:25 +0000</pubDate>
			<dc:creator>mavellino</dc:creator>
			<guid isPermaLink="false">33207@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks.  A few more questions though since I am a newbie to all of this. I need to upload them to an id#.  Do I need to make the url path with a folder for that id# in my media library? And please specifically tell me  on what line # I should insert the code in the link above....&#60;br /&#62;
Thank you.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
