<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="https://brooke.codes/wp-content/plugins/pretty-rss-feeds/xslt/pretty-feed.xsl" type="text/xsl" media="screen" ?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Uploading Files as Post attachments with Gravity Forms	</title>
	<atom:link href="https://brooke.codes/2013/03/05/uploading-files-as-post-attachments-with-gravity-forms/feed/" rel="self" type="application/rss+xml" />
	<link>https://brooke.codes/2013/03/05/uploading-files-as-post-attachments-with-gravity-forms/</link>
	<description>The Tech Blog of Brooke. </description>
	<lastBuildDate>Thu, 27 Mar 2025 04:48:40 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Azmir		</title>
		<link>https://brooke.codes/2013/03/05/uploading-files-as-post-attachments-with-gravity-forms/#comment-86</link>

		<dc:creator><![CDATA[Azmir]]></dc:creator>
		<pubDate>Wed, 19 Apr 2017 10:01:03 +0000</pubDate>
		<guid isPermaLink="false">https://brooke.codes/?p=304#comment-86</guid>

					<description><![CDATA[Hi, I&#039;m a bit new to &quot;Custom Post Type&quot;. Is there a step by step instruction on how to use your code to include uploaded file (PDF) as post attachment?]]></description>
			<content:encoded><![CDATA[<p>Hi, I&#8217;m a bit new to &#8220;Custom Post Type&#8221;. Is there a step by step instruction on how to use your code to include uploaded file (PDF) as post attachment?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ahmed Nabil		</title>
		<link>https://brooke.codes/2013/03/05/uploading-files-as-post-attachments-with-gravity-forms/#comment-85</link>

		<dc:creator><![CDATA[Ahmed Nabil]]></dc:creator>
		<pubDate>Mon, 21 Nov 2016 04:23:27 +0000</pubDate>
		<guid isPermaLink="false">https://brooke.codes/?p=304#comment-85</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://brooke.codes/2013/03/05/uploading-files-as-post-attachments-with-gravity-forms/#comment-84&quot;&gt;Titanium Creative, Inc.&lt;/a&gt;.

can you help me with the new full code i can&#039;t figure out why it isn&#039;t working]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://brooke.codes/2013/03/05/uploading-files-as-post-attachments-with-gravity-forms/#comment-84">Titanium Creative, Inc.</a>.</p>
<p>can you help me with the new full code i can&#8217;t figure out why it isn&#8217;t working</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Titanium Creative, Inc.		</title>
		<link>https://brooke.codes/2013/03/05/uploading-files-as-post-attachments-with-gravity-forms/#comment-84</link>

		<dc:creator><![CDATA[Titanium Creative, Inc.]]></dc:creator>
		<pubDate>Fri, 06 May 2016 14:30:45 +0000</pubDate>
		<guid isPermaLink="false">https://brooke.codes/?p=304#comment-84</guid>

					<description><![CDATA[Actually, I just realized i just need to:
$files = json_decode($entry[$field-&#062;id]);]]></description>
			<content:encoded><![CDATA[<p>Actually, I just realized i just need to:<br />
$files = json_decode($entry[$field-&gt;id]);</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Titanium Creative, Inc.		</title>
		<link>https://brooke.codes/2013/03/05/uploading-files-as-post-attachments-with-gravity-forms/#comment-83</link>

		<dc:creator><![CDATA[Titanium Creative, Inc.]]></dc:creator>
		<pubDate>Fri, 06 May 2016 14:22:50 +0000</pubDate>
		<guid isPermaLink="false">https://brooke.codes/?p=304#comment-83</guid>

					<description><![CDATA[Looks like this no longer works. I am using that hook and $_FILES is empty. The field with type fileupload has a comma delimited slashed string. I am doing:
`$files = str_replace(&#039;&quot;&#039;, &#039;&#039;, stripslashes($_entry[$field-&#062;ID]]));
$files = explode(&#039;,&#039;, $files);`
to get an array of uploaded files. They are uploaded to the gravity form uploads in an encoded folder.
I can then break apart each file to get the filename and path.
I&#039;m getting $field by looping through $form[&#039;fields&#039;] and processing each field with $entry.]]></description>
			<content:encoded><![CDATA[<p>Looks like this no longer works. I am using that hook and $_FILES is empty. The field with type fileupload has a comma delimited slashed string. I am doing:<br />
`$files = str_replace(&#8216;&#8221;&#8216;, &#8221;, stripslashes($_entry[$field-&gt;ID]]));<br />
$files = explode(&#8216;,&#8217;, $files);`<br />
to get an array of uploaded files. They are uploaded to the gravity form uploads in an encoded folder.<br />
I can then break apart each file to get the filename and path.<br />
I&#8217;m getting $field by looping through $form[&#8216;fields&#8217;] and processing each field with $entry.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: atlanteavila		</title>
		<link>https://brooke.codes/2013/03/05/uploading-files-as-post-attachments-with-gravity-forms/#comment-82</link>

		<dc:creator><![CDATA[atlanteavila]]></dc:creator>
		<pubDate>Tue, 29 Oct 2013 18:07:33 +0000</pubDate>
		<guid isPermaLink="false">https://brooke.codes/?p=304#comment-82</guid>

					<description><![CDATA[Hi simple question, does this work with all forms I don&#039;t see it targeting a specific form, less I&#039;m missing something. Also, how do I place a link to the file from within the loop? Thanks!]]></description>
			<content:encoded><![CDATA[<p>Hi simple question, does this work with all forms I don&#8217;t see it targeting a specific form, less I&#8217;m missing something. Also, how do I place a link to the file from within the loop? Thanks!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
