<?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: Manipulating URL of uploaded file</title>
		<link>https://legacy.forums.gravityhelp.com/topic/manipulating-url-of-uploaded-file</link>
		<description>Gravity Support Forums Topic: Manipulating URL of uploaded file</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 15:52:00 +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/manipulating-url-of-uploaded-file" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Manipulating URL of uploaded file"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/manipulating-url-of-uploaded-file#post-60558</link>
			<pubDate>Mon, 28 May 2012 16:01:13 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">60558@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad you were able to figure it out. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>davidjoydotnet on "Manipulating URL of uploaded file"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/manipulating-url-of-uploaded-file#post-60556</link>
			<pubDate>Mon, 28 May 2012 15:55:09 +0000</pubDate>
			<dc:creator>davidjoydotnet</dc:creator>
			<guid isPermaLink="false">60556@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I realized I can just hardcode something like the code below into the GF Post Body container. Duh. Thank you.&#60;/p&#62;
&#60;p&#62;&#38;lt;img src=&#34;{File:20}&#34; alt=&#34;&#34;  style = &#34;max-width:590px&#34;/&#38;gt;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>davidjoydotnet on "Manipulating URL of uploaded file"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/manipulating-url-of-uploaded-file#post-60555</link>
			<pubDate>Mon, 28 May 2012 15:35:55 +0000</pubDate>
			<dc:creator>davidjoydotnet</dc:creator>
			<guid isPermaLink="false">60555@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;David, I need to display the results from the Embedly call  inside the post that is being created.  GF displays the URL fine if I just add &#34;{File:20}&#34; inside the &#34;Post Body&#34; container in the GF backend interface. There must be a way to get the URL just before GF puts it inside the post, run it through the function that produces the embed code, and display that instead...&#60;/p&#62;
&#60;p&#62;(Just FYI, I'm basically wanting to allow a user to upload an image and display it inside the post with a max-width attribute - in case you can point me to different way of accomplishing that). &#60;/p&#62;
&#60;p&#62;Thank you.&#60;br /&#62;
Marc.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Manipulating URL of uploaded file"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/manipulating-url-of-uploaded-file#post-60552</link>
			<pubDate>Mon, 28 May 2012 14:57:53 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">60552@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can't add it to the field because this hook is after the form has already been submitted (you have to wait until the form is submitted because that's when the file is actually uploaded to your server). You should just grab it and pass it right to the Embed.ly API.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>davidjoydotnet on "Manipulating URL of uploaded file"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/manipulating-url-of-uploaded-file#post-60544</link>
			<pubDate>Mon, 28 May 2012 14:00:45 +0000</pubDate>
			<dc:creator>davidjoydotnet</dc:creator>
			<guid isPermaLink="false">60544@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I noticed my function name was missing the underscore. I fixed that, but it's still not working:&#60;/p&#62;
&#60;p&#62;add_action(&#34;gform_after_submission_12&#34;, &#34;get_url&#34;, 10, 2);&#60;br /&#62;
function get_url($form) {&#60;br /&#62;
$_POST[&#34;input_21&#34;] = $field[20];&#60;br /&#62;
}
&#60;/p&#62;</description>
		</item>
		<item>
			<title>davidjoydotnet on "Manipulating URL of uploaded file"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/manipulating-url-of-uploaded-file#post-60543</link>
			<pubDate>Mon, 28 May 2012 13:50:13 +0000</pubDate>
			<dc:creator>davidjoydotnet</dc:creator>
			<guid isPermaLink="false">60543@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;David, I tried the code below, but I'm still doing something wrong.&#60;/p&#62;
&#60;p&#62;21 is the ID of the hidden field I want to pass the URL on to. The file upload field's ID is 20. The form's ID is 12. By the way, what is the role of the arguments &#34;10,2&#34;?&#60;/p&#62;
&#60;p&#62;Thanks for your help.  &#60;/p&#62;
&#60;p&#62;Marc&#60;/p&#62;
&#60;p&#62;code I'm using:&#60;/p&#62;
&#60;p&#62;add_action(&#34;gform_after_submission_12&#34;, &#34;get_url&#34;, 10, 2);&#60;br /&#62;
function geturl($form) {&#60;br /&#62;
$_POST['input_21'] = $field[20];&#60;br /&#62;
}
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Manipulating URL of uploaded file"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/manipulating-url-of-uploaded-file#post-60516</link>
			<pubDate>Mon, 28 May 2012 08:28:10 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">60516@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ah, sorry. I assumed you wanted to change the URL of where a file was uploaded.&#60;/p&#62;
&#60;p&#62;Using the &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#60;/a&#62; hook and the Field ID - $field[1]; you should be able to get the file URL.&#60;/p&#62;
&#60;p&#62;This is the same hook to pass data to a third party site. &#60;/p&#62;
&#60;p&#62;As for re-sizing and whatnot, there are lots of PHP scripts relating to that as well.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>davidjoydotnet on "Manipulating URL of uploaded file"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/manipulating-url-of-uploaded-file#post-60513</link>
			<pubDate>Mon, 28 May 2012 08:11:13 +0000</pubDate>
			<dc:creator>davidjoydotnet</dc:creator>
			<guid isPermaLink="false">60513@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;On the page of the link you sent me, the example seems to be about changing the upload path; I'd like to just know what the URL is; no need to change it. Thanks again.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>davidjoydotnet on "Manipulating URL of uploaded file"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/manipulating-url-of-uploaded-file#post-60511</link>
			<pubDate>Mon, 28 May 2012 08:09:02 +0000</pubDate>
			<dc:creator>davidjoydotnet</dc:creator>
			<guid isPermaLink="false">60511@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;David, thanks, as always, for your reply. &#60;/p&#62;
&#60;p&#62;I'm trying grab that URL to pass it to the Embed.ly API to generate the embed code for resizing and including that photo in a post. &#60;/p&#62;
&#60;p&#62;Also, can you point me to a good way of automatically reducing files in size? &#60;/p&#62;
&#60;p&#62;Marc&#60;br /&#62;
Miami
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Manipulating URL of uploaded file"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/manipulating-url-of-uploaded-file#post-60507</link>
			<pubDate>Mon, 28 May 2012 07:51:56 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">60507@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What are you trying to do with that URL? Here is the File Upload Path hook:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_upload_path&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_upload_path&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
