<?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: Converting File Upload to Post Attachment during post-processing</title>
		<link>https://legacy.forums.gravityhelp.com/topic/converting-file-upload-to-post-attachment-during-post-processing</link>
		<description>Gravity Support Forums Topic: Converting File Upload to Post Attachment during post-processing</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 18:18:13 +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/converting-file-upload-to-post-attachment-during-post-processing" rel="self" type="application/rss+xml" />

		<item>
			<title>cubadesign on "Converting File Upload to Post Attachment during post-processing"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/converting-file-upload-to-post-attachment-during-post-processing#post-53544</link>
			<pubDate>Tue, 27 Mar 2012 05:06:04 +0000</pubDate>
			<dc:creator>cubadesign</dc:creator>
			<guid isPermaLink="false">53544@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;How did you get it working with uploading different file types other than images via the post image field.. pdf for example.. ?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>antonv on "Converting File Upload to Post Attachment during post-processing"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/converting-file-upload-to-post-attachment-during-post-processing#post-45556</link>
			<pubDate>Thu, 05 Jan 2012 04:11:40 +0000</pubDate>
			<dc:creator>antonv</dc:creator>
			<guid isPermaLink="false">45556@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Also, when creating the new attachment post, how would I know it's ID to change it's parent?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>antonv on "Converting File Upload to Post Attachment during post-processing"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/converting-file-upload-to-post-attachment-during-post-processing#post-45555</link>
			<pubDate>Thu, 05 Jan 2012 04:10:03 +0000</pubDate>
			<dc:creator>antonv</dc:creator>
			<guid isPermaLink="false">45555@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Would you mid being more explicit into exactly how did you implement the &#34;post-processing function&#34;? Would that code be called by gform_after_submission filter?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Converting File Upload to Post Attachment during post-processing"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/converting-file-upload-to-post-attachment-during-post-processing#post-42088</link>
			<pubDate>Wed, 23 Nov 2011 23:54:41 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">42088@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the update Scott.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sc0ttkclark on "Converting File Upload to Post Attachment during post-processing"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/converting-file-upload-to-post-attachment-during-post-processing#post-41964</link>
			<pubDate>Wed, 23 Nov 2011 03:20:31 +0000</pubDate>
			<dc:creator>sc0ttkclark</dc:creator>
			<guid isPermaLink="false">41964@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So that ended up fitting my needs perfectly. Only problem is that by adding a Post Image field, upon submission - a ghost post is created called &#34;Untitled X&#34;, with &#34;X&#34; being a number. To resolve this, I simply added this code to my post-processing function.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if (0 &#38;lt; $entry[&#38;#39;post_id&#38;#39;])
    wp_delete_post($entry[&#38;#39;post_id&#38;#39;], true);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That code will drop the post, BUT leave the attachments, which was all I needed to have anyway.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sc0ttkclark on "Converting File Upload to Post Attachment during post-processing"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/converting-file-upload-to-post-attachment-during-post-processing#post-41960</link>
			<pubDate>Wed, 23 Nov 2011 01:32:33 +0000</pubDate>
			<dc:creator>sc0ttkclark</dc:creator>
			<guid isPermaLink="false">41960@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;On further inspection, it appears there's another field type I glossed over for Post Image. However, if I end up going forward with this code, it would convert the file uploads (regardless of file type) over to an attachment.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sc0ttkclark on "Converting File Upload to Post Attachment during post-processing"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/converting-file-upload-to-post-attachment-during-post-processing#post-41939</link>
			<pubDate>Tue, 22 Nov 2011 22:28:37 +0000</pubDate>
			<dc:creator>sc0ttkclark</dc:creator>
			<guid isPermaLink="false">41939@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm looking to get all the benefits of having post attachments (thumbnails, image resizing, etc..) for images uploaded to a GF (complex use case alert). I'll post my progress here, if anyone has done this before feel free to save me from going through the &#34;figuring it out&#34; phase ;)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
