<?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: Captcha image broken link when using Amazon s3 as uploads directory.</title>
		<link>https://legacy.forums.gravityhelp.com/topic/captcha-image-broken-link-when-using-amazon-s3-as-uploads-directory</link>
		<description>Gravity Support Forums Topic: Captcha image broken link when using Amazon s3 as uploads directory.</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 16:19:14 +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/captcha-image-broken-link-when-using-amazon-s3-as-uploads-directory" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Captcha image broken link when using Amazon s3 as uploads directory."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/captcha-image-broken-link-when-using-amazon-s3-as-uploads-directory#post-58930</link>
			<pubDate>Mon, 14 May 2012 18:45:06 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">58930@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry, I should have been more specific. We don't really control which subdomain the images are sent to. You wanted to change it from img to www. I will pass this on to the developers to have a look on what we can do that will survive upgrades.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jsros86 on "Captcha image broken link when using Amazon s3 as uploads directory."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/captcha-image-broken-link-when-using-amazon-s3-as-uploads-directory#post-58923</link>
			<pubDate>Mon, 14 May 2012 17:04:14 +0000</pubDate>
			<dc:creator>jsros86</dc:creator>
			<guid isPermaLink="false">58923@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;David... Gravity forms *does* determine where to store the image... im gravityforms/common.php, function:&#60;/p&#62;
&#60;p&#62;on line 3424&#60;code&#62;public static function get_captcha($field){&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;then on 3468 through 3470:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$filename = $captcha-&#38;gt;generate_image($prefix, $word);
        $url = RGFormsModel::get_upload_url(&#38;quot;captcha&#38;quot;) . &#38;quot;/&#38;quot; . $filename;
        $path = $captcha-&#38;gt;tmp_dir . $filename;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;There should be some way of specifying this upload directory in &#60;code&#62;$url&#60;/code&#62; without altering the plugin.&#60;/p&#62;
&#60;p&#62;I hacked this together and it works but is going to cause problems when I have to update...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$uploadpath = RGFormsModel::get_upload_url(&#38;quot;captcha&#38;quot;);
        $uploadpath = explode(&#38;#39;gravity_forms/&#38;#39;, $uploadpath);
        $url = &#38;#39;http://productionlocations.com/wp-content/uploads/gravity_forms/&#38;#39;.$uploadpath[1].&#38;#39;/&#38;#39;.$filename;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Captcha image broken link when using Amazon s3 as uploads directory."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/captcha-image-broken-link-when-using-amazon-s3-as-uploads-directory#post-58827</link>
			<pubDate>Mon, 14 May 2012 09:11:08 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">58827@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;How are you including RSC in the Gravity Forms form you have? The issue that I see is that Gravity Forms didn't determine where to store that issue, as it really isn't uploaded/controlled by our plugin. While it was made for Contact Form 7 and has a hook that allows you to control RSC.&#60;/p&#62;
&#60;p&#62;You'll want to contact the developer and see what call you need in your wp-config to force the www vs img.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jsros86 on "Captcha image broken link when using Amazon s3 as uploads directory."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/captcha-image-broken-link-when-using-amazon-s3-as-uploads-directory#post-58713</link>
			<pubDate>Fri, 11 May 2012 13:23:27 +0000</pubDate>
			<dc:creator>jsros86</dc:creator>
			<guid isPermaLink="false">58713@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm using really simple captcha.&#60;/p&#62;
&#60;p&#62;The issue is that the captcha image currently uses the following address:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://img.productionlocations.com/wp-content/uploads/gravity_forms/captcha-df4724a16aa5637e2129f98c2b9f674d/2085126867.png&#34; rel=&#34;nofollow&#34;&#62;http://img.productionlocations.com/wp-content/uploads/gravity_forms/captcha-df4724a16aa5637e2129f98c2b9f674d/2085126867.png&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;that link above points to my amazon s3 bucket.&#60;/p&#62;
&#60;p&#62;I need it to use WWW. instead of IMG. productionlocations.com&#60;/p&#62;
&#60;p&#62;I put the following in my functions.php but it doesn't seem to be working.&#60;br /&#62;
&#60;a href=&#34;http://pastebin.com/QbKj1nTd&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/QbKj1nTd&#60;/a&#62;&#60;br /&#62;
thanks for the quick response! I appreciate it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Captcha image broken link when using Amazon s3 as uploads directory."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/captcha-image-broken-link-when-using-amazon-s3-as-uploads-directory#post-58704</link>
			<pubDate>Fri, 11 May 2012 12:55:20 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">58704@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am not entirely understanding what is happening here. Which captcha service are you using? &#60;/p&#62;
&#60;p&#62;Here is where you can change upload path information:&#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>
		<item>
			<title>jsros86 on "Captcha image broken link when using Amazon s3 as uploads directory."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/captcha-image-broken-link-when-using-amazon-s3-as-uploads-directory#post-58697</link>
			<pubDate>Fri, 11 May 2012 12:36:19 +0000</pubDate>
			<dc:creator>jsros86</dc:creator>
			<guid isPermaLink="false">58697@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;&#60;a href=&#34;http://www.productionlocations.com/contact/list-your-property/&#34; rel=&#34;nofollow&#34;&#62;http://www.productionlocations.com/contact/list-your-property/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Because I'm redirecting uploads to an Amazon s3 bucket, the captcha image is broken because there is no captcha image directory in my s3 bucket.&#60;/p&#62;
&#60;p&#62;I need a way of setting the uploads directory that gravity forms uses specifically to my wordpress server's uploads folder.&#60;/p&#62;
&#60;p&#62;I had the same issue using contact form 7 and was easily able to remedy the problem using the following in WP-config.php&#60;/p&#62;
&#60;p&#62;define( 'WPCF7_CAPTCHA_TMP_URL', WP_HOME . '/wp-content/uploads/wpcf7_captcha' );&#60;/p&#62;
&#60;p&#62;Is there a similar method of defining that temporary captcha directory for gravity forms?&#60;/p&#62;
&#60;p&#62;THANKS!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
