<?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: Getting Attachment link</title>
		<link>https://legacy.forums.gravityhelp.com/topic/getting-attachment-link</link>
		<description>Gravity Support Forums Topic: Getting Attachment link</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 00:58:02 +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/getting-attachment-link" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Getting Attachment link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-attachment-link#post-33277</link>
			<pubDate>Tue, 23 Aug 2011 03:19:52 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">33277@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No problem.  I was just working on something similar for myself and had to refer back to this post!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>vixvii on "Getting Attachment link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-attachment-link#post-33276</link>
			<pubDate>Tue, 23 Aug 2011 03:01:09 +0000</pubDate>
			<dc:creator>vixvii</dc:creator>
			<guid isPermaLink="false">33276@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris,&#60;/p&#62;
&#60;p&#62;It's working! Thanks again for the help!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Getting Attachment link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-attachment-link#post-33269</link>
			<pubDate>Mon, 22 Aug 2011 20:23:40 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">33269@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you change the first two lines in your code and make it work?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_action(&#38;quot;gform_post_submission_18&#38;quot;, &#38;quot;post_sendmail_handler&#38;quot;, 10, 2);
function post_sendmail_handler($entry, $form){&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;According to the docs, the &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_post_submission&#34; rel=&#34;nofollow&#34;&#62;gform_post_submission hook&#60;/a&#62; takes 2 arguments, $entry and $form, but you are only sending $form.  I think that's why the entry values are not available.  I think if you do it this way you won't have to use the $_POST global either.  But please try these two changes and see if that works.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>vixvii on "Getting Attachment link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-attachment-link#post-33226</link>
			<pubDate>Mon, 22 Aug 2011 16:18:58 +0000</pubDate>
			<dc:creator>vixvii</dc:creator>
			<guid isPermaLink="false">33226@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks, but still not getting any value. The file does get uploaded to the server though...&#60;/p&#62;
&#60;p&#62;My code is quite long, but here it is : &#60;a href=&#34;http://www.pastie.org/2413213&#34; rel=&#34;nofollow&#34;&#62;http://www.pastie.org/2413213&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Unfortunately the form is on a protected page, but the html code is : &#60;a href=&#34;http://www.pastie.org/2413223&#34; rel=&#34;nofollow&#34;&#62;http://www.pastie.org/2413223&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I am also aware that I am using &#60;code&#62;wp_mail($email_addresses[$i], $subject, $message, $headers, $attachments);&#60;/code&#62; - but I am not worried about the $attachment in this function for now, I just want to send the $attachment_link in the message body.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Getting Attachment link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-attachment-link#post-33206</link>
			<pubDate>Mon, 22 Aug 2011 13:07:31 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">33206@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Since you are using gform_post_submission, you have access to the $entry.  Try this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
$attachments = $entry[4];&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>vixvii on "Getting Attachment link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-attachment-link#post-33183</link>
			<pubDate>Mon, 22 Aug 2011 06:09:54 +0000</pubDate>
			<dc:creator>vixvii</dc:creator>
			<guid isPermaLink="false">33183@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am using an attachment in my form which is emailed to several users. I know GF just has a link to the uploaded file, but I cannot seem to get this link.&#60;/p&#62;
&#60;p&#62;Could you maybe tell me how I can retrieve the url to the attached file in a post_submission function?&#60;/p&#62;
&#60;p&#62;Currently I use $attachments = $_POST[&#34;input_4&#34;]; But this just gives me a blank value&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
