<?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: Update user meta with value processed in form submition</title>
		<link>https://legacy.forums.gravityhelp.com/topic/update-user-meta-with-value-processed-in-form-submition</link>
		<description>Gravity Support Forums Topic: Update user meta with value processed in form submition</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 10:33:10 +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/update-user-meta-with-value-processed-in-form-submition" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Update user meta with value processed in form submition"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/update-user-meta-with-value-processed-in-form-submition#post-75684</link>
			<pubDate>Sun, 16 Sep 2012 14:59:15 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">75684@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad you were able to work it out.  Nice customization.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>brubrant2 on "Update user meta with value processed in form submition"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/update-user-meta-with-value-processed-in-form-submition#post-75665</link>
			<pubDate>Sun, 16 Sep 2012 11:29:12 +0000</pubDate>
			<dc:creator>brubrant2</dc:creator>
			<guid isPermaLink="false">75665@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris, &#60;/p&#62;
&#60;p&#62;when tested at gform_pre_submission hook then started to work, pretty weird, but great, I got what I wanted.&#60;/p&#62;
&#60;p&#62;Thank you for your attention!&#60;/p&#62;
&#60;p&#62;Regards.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Update user meta with value processed in form submition"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/update-user-meta-with-value-processed-in-form-submition#post-75638</link>
			<pubDate>Sun, 16 Sep 2012 08:25:51 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">75638@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;As a troubleshooting step, can you dump the $_FILES array with both the gform_pre_submission and gform_after_submission hook to see what it contains?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>brubrant2 on "Update user meta with value processed in form submition"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/update-user-meta-with-value-processed-in-form-submition#post-75574</link>
			<pubDate>Sat, 15 Sep 2012 17:42:15 +0000</pubDate>
			<dc:creator>brubrant2</dc:creator>
			<guid isPermaLink="false">75574@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I need to run the function &#60;code&#62;wp_handle_upload()&#60;/code&#62; on file sent by form contain file field, and then use returned value of this function to update the meta user after registered.&#60;/p&#62;
&#60;p&#62;In addition to several other attempts my last were:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_after_submission_5&#38;quot;, &#38;quot;v5_armazena_avatar&#38;quot;);
function v5_armazena_avatar() {
	global $avatar;
	$avatar = wp_handle_upload( $_FILES[&#38;#39;input_5&#38;#39;], array( &#38;#39;test_form&#38;#39; =&#38;gt; false ) );
}

add_action(&#38;quot;gform_user_registered&#38;quot;, &#38;quot;v5_atualiza_avatar&#38;quot;, 10 );
function v5_atualiza_avatar($user_id) {
	global $avatar;
	update_user_meta( $user_id, &#38;#39;simple_local_avatar&#38;#39;, array( &#38;#39;full&#38;#39; =&#38;gt; $avatar[&#38;#39;url&#38;#39;] ) );
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Currently the custom meta user is stored with value: a:1:{s:4:&#34;full&#34;;s:0:&#34;&#34;;}&#60;/p&#62;
&#60;p&#62;The problem is that I do not know at wich hook I have access to the global PHP &#60;code&#62;$ _FILES&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;I also tried &#60;code&#62;gform_pre_submission&#60;/code&#62; hook.&#60;/p&#62;
&#60;p&#62;Any thoughts will be appreciated.&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
