<?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: Show uploaded image (or get location) before submission (instead of link)</title>
		<link>https://legacy.forums.gravityhelp.com/topic/show-uploaded-image-or-get-location-before-submission-instead-of-link</link>
		<description>Gravity Support Forums Topic: Show uploaded image (or get location) before submission (instead of link)</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 02:57:48 +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/show-uploaded-image-or-get-location-before-submission-instead-of-link" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Show uploaded image (or get location) before submission (instead of link)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-uploaded-image-or-get-location-before-submission-instead-of-link#post-93081</link>
			<pubDate>Mon, 19 Nov 2012 15:25:28 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">93081@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Tom.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Tom on "Show uploaded image (or get location) before submission (instead of link)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-uploaded-image-or-get-location-before-submission-instead-of-link#post-93059</link>
			<pubDate>Mon, 19 Nov 2012 13:47:36 +0000</pubDate>
			<dc:creator>Tom</dc:creator>
			<guid isPermaLink="false">93059@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Guys this works perfect!&#60;br /&#62;
Thank you so much. My form looks much better now :)&#60;br /&#62;
Cheers, Tom
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Show uploaded image (or get location) before submission (instead of link)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-uploaded-image-or-get-location-before-submission-instead-of-link#post-92191</link>
			<pubDate>Sat, 17 Nov 2012 01:39:52 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">92191@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Tom,&#60;/p&#62;
&#60;p&#62;Matt's solution will work for you. In the future, I plan to update my snippet to allow you to pass a &#34;:raw&#34; filter which will return the value unmodified.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>matsilva on "Show uploaded image (or get location) before submission (instead of link)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-uploaded-image-or-get-location-before-submission-instead-of-link#post-92072</link>
			<pubDate>Fri, 16 Nov 2012 20:43:09 +0000</pubDate>
			<dc:creator>matsilva</dc:creator>
			<guid isPermaLink="false">92072@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey Tom....I have worked on this prior and instead of using&#60;/p&#62;
&#60;p&#62;{File:1}&#60;br /&#62;
use&#60;br /&#62;
{:1} or whatever the upload field was set to inside of a HTML field&#60;/p&#62;
&#60;p&#62;Next the default display of the uploaded file doesn't display as a direct url but rather a link.&#60;/p&#62;
&#60;p&#62;Since you are using David Smiths snippet over here &#60;a href=&#34;http://gravitywiz.com/2012/08/04/better-pre-submission-confirmation/&#34; rel=&#34;nofollow&#34;&#62;http://gravitywiz.com/2012/08/04/better-pre-submission-confirmation/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;modify this portion &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$file_path = $value;
        if(!empty($file_path)){
            $file_path = esc_attr(str_replace(&#38;quot; &#38;quot;, &#38;quot;%20&#38;quot;, $file_path));
            $value = &#38;quot;&#38;lt;a href=&#38;#39;$file_path&#38;#39; target=&#38;#39;_blank&#38;#39; title=&#38;#39;&#38;quot; . __(&#38;quot;Click to view&#38;quot;, &#38;quot;gravityforms&#38;quot;) . &#38;quot;&#38;#39;&#38;gt;&#38;quot; . $file_info[&#38;#39;uploaded_filename&#38;#39;] . &#38;quot;&#38;lt;/a&#38;gt;&#38;quot;;
        }
        return $value;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to this&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$file_path = $value;
        if(!empty($file_path)){
            $file_path = esc_attr(str_replace(&#38;quot; &#38;quot;, &#38;quot;%20&#38;quot;, $file_path));
            $value = &#38;quot;&#38;lt;img src=&#38;#39;$file_path&#38;#39; alt=&#38;#39;&#38;#39; width=&#38;#39;200&#38;#39; /&#38;gt;&#38;quot;;
        }
        return $value;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This changes it from a link to a img src reference instead.  I added my own width value for my own use but its a decent start if this is what you are looking to do.&#60;/p&#62;
&#60;p&#62;Hope that helps!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Tom on "Show uploaded image (or get location) before submission (instead of link)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-uploaded-image-or-get-location-before-submission-instead-of-link#post-92032</link>
			<pubDate>Fri, 16 Nov 2012 15:46:58 +0000</pubDate>
			<dc:creator>Tom</dc:creator>
			<guid isPermaLink="false">92032@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you so much!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Show uploaded image (or get location) before submission (instead of link)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-uploaded-image-or-get-location-before-submission-instead-of-link#post-92026</link>
			<pubDate>Fri, 16 Nov 2012 15:27:56 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">92026@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've asked a developer to weigh in on why this isn't working for you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Tom on "Show uploaded image (or get location) before submission (instead of link)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-uploaded-image-or-get-location-before-submission-instead-of-link#post-92024</link>
			<pubDate>Fri, 16 Nov 2012 15:21:46 +0000</pubDate>
			<dc:creator>Tom</dc:creator>
			<guid isPermaLink="false">92024@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David,&#60;/p&#62;
&#60;p&#62;Thanks for your respond.&#60;br /&#62;
When I do that, it also exactly the same I am afraid.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Tom
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Show uploaded image (or get location) before submission (instead of link)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-uploaded-image-or-get-location-before-submission-instead-of-link#post-91907</link>
			<pubDate>Fri, 16 Nov 2012 09:51:05 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">91907@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you please try {File:1:url} and let me know if that produces the result you want?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Tom on "Show uploaded image (or get location) before submission (instead of link)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-uploaded-image-or-get-location-before-submission-instead-of-link#post-91774</link>
			<pubDate>Fri, 16 Nov 2012 03:43:34 +0000</pubDate>
			<dc:creator>Tom</dc:creator>
			<guid isPermaLink="false">91774@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Anyone? :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Tom on "Show uploaded image (or get location) before submission (instead of link)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-uploaded-image-or-get-location-before-submission-instead-of-link#post-91459</link>
			<pubDate>Thu, 15 Nov 2012 09:59:25 +0000</pubDate>
			<dc:creator>Tom</dc:creator>
			<guid isPermaLink="false">91459@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I searched a lot, but couldn't seem to find an answer to what I think is a very simple problem.&#60;/p&#62;
&#60;p&#62;On my confirmation page (using 'better pre-submission-confirmation) I want to show the image that was uploaded a couple of steps earlier.&#60;/p&#62;
&#60;p&#62;When I use the merge tag {File:1} it creates automatically a link, therefore &#38;lt;img src=&#34;{File:1}&#34; /&#38;gt; obviously does not work. &#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Tom
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
