<?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: Extract File Upload Name in Email Notification</title>
		<link>https://legacy.forums.gravityhelp.com/topic/extract-file-upload-name-in-email-notification</link>
		<description>Gravity Support Forums Topic: Extract File Upload Name in Email Notification</description>
		<language>en-US</language>
		<pubDate>Wed, 15 Apr 2026 22:05:16 +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/extract-file-upload-name-in-email-notification" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Extract File Upload Name in Email Notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/extract-file-upload-name-in-email-notification#post-69993</link>
			<pubDate>Tue, 07 Aug 2012 18:53:45 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">69993@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It's a good idea.  It may be built in already, but I could not find it easily, so I worked around it.  I'll tag this as a feature request and bring it to the attention of the developers.  Maybe I made hard work of something which was actually very easy. Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>joeykirk on "Extract File Upload Name in Email Notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/extract-file-upload-name-in-email-notification#post-69938</link>
			<pubDate>Tue, 07 Aug 2012 14:33:57 +0000</pubDate>
			<dc:creator>joeykirk</dc:creator>
			<guid isPermaLink="false">69938@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;excellent. That worked great. Wouldnt it be better in a future release of the plugin to have this functionality built in?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Extract File Upload Name in Email Notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/extract-file-upload-name-in-email-notification#post-69404</link>
			<pubDate>Fri, 03 Aug 2012 19:09:22 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">69404@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I was not able to figure out in the plugin code if it's possible to use just the sanitized filename or not.  I worked around the problem by creating a shortcode you can use in your notification area.  &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F&#34; rel=&#34;nofollow&#34;&#62;Add this code&#60;/a&#62; to your theme's functions.php.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_shortcode (&#38;#39;gf_filename&#38;#39;, &#38;#39;uploaded_file_basename&#38;#39;);
function uploaded_file_basename( $atts, $content = null ) {
        $filename = basename($content);
        return $filename;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Use the shortcode in your notification like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[gf_filename]{MERGE TAG}[/gf_filename]&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Wrap the merge tag from the drop down in the shortcode [gf_filename].  That will output the plain text filename as it was being used in the {all_fields} notification.&#60;/p&#62;
&#60;p&#62;If you want to link the file to the name, exactly as it is when used in the {all_fields} notification, you can do this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;a href=&#38;quot;{MERGE TAG}&#38;quot; title=&#38;quot;click to view&#38;quot;&#38;gt;[gf_filename]{MERGE TAG}[/gf_filename]&#38;lt;/a&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Be sure to use the drop down for your actual merge tag, to replace {MERGE TAG} in this example.  Please let me know if you have any questions about that.&#60;/p&#62;
&#60;p&#62;For reference, I put the code online here as well:&#60;br /&#62;
&#60;a href=&#34;http://pastebin.com/Ta4WeEwv&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/Ta4WeEwv&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Extract File Upload Name in Email Notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/extract-file-upload-name-in-email-notification#post-69399</link>
			<pubDate>Fri, 03 Aug 2012 17:56:07 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">69399@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for bumping the topic.  Sometimes the topics fall off our radar.  It was unintentional.  My apologies.  I will take a look through the code and see what provides this functionality so we can use it in your notification.  I will post back in a bit.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>joeykirk on "Extract File Upload Name in Email Notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/extract-file-upload-name-in-email-notification#post-69384</link>
			<pubDate>Fri, 03 Aug 2012 16:39:47 +0000</pubDate>
			<dc:creator>joeykirk</dc:creator>
			<guid isPermaLink="false">69384@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Still waiting to hear a response. It has been over a week.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>joeykirk on "Extract File Upload Name in Email Notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/extract-file-upload-name-in-email-notification#post-67963</link>
			<pubDate>Wed, 25 Jul 2012 16:35:35 +0000</pubDate>
			<dc:creator>joeykirk</dc:creator>
			<guid isPermaLink="false">67963@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am trying to obtain the file name of my file upload in my gravity form notification email section. If I use the {all_fields} tag the email I get for the file upload shows the file name as the text of the link. However when I just want a specific file upload tag like {Attach file 1: 6}, the email I get shows the full url as the text of the link. Is there a way to format the tag so I only get the file name as the text of the link?&#60;br /&#62;
Any help would be greatly appreciated.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
