<?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: Image / logo / avatar for user</title>
		<link>https://legacy.forums.gravityhelp.com/topic/image-logo-avatar-for-user</link>
		<description>Gravity Support Forums Topic: Image / logo / avatar for user</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 04:07:07 +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/image-logo-avatar-for-user" rel="self" type="application/rss+xml" />

		<item>
			<title>dashaluna on "Image / logo / avatar for user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/image-logo-avatar-for-user#post-221031</link>
			<pubDate>Tue, 23 Apr 2013 11:59:29 +0000</pubDate>
			<dc:creator>dashaluna</dc:creator>
			<guid isPermaLink="false">221031@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello Chris,&#60;/p&#62;
&#60;p&#62;When print_r the $entry here is what I can see for the file upload field:&#60;br /&#62;
&#60;code&#62;[7] =&#38;gt; &#60;a href=&#34;http://example.dev/wp/wp-content/uploads/gravity_forms/GF_related_long_number/2013/04/la-fitness.jpg&#34; rel=&#34;nofollow&#34;&#62;http://example.dev/wp/wp-content/uploads/gravity_forms/GF_related_long_number/2013/04/la-fitness.jpg&#60;/a&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Where [7] is the ID of the File field in the form. However, there is no additional information about the file (width, heigh and so on) within the $entry. I think that info is only specified for Image field as we know that only images are uploaded and all of them will have that information.&#60;/p&#62;
&#60;p&#62;How do I figure all necessary additional information for File field? I'm a bit lost at the moment.&#60;/p&#62;
&#60;p&#62;Many thanks,&#60;br /&#62;
Dasha
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Image / logo / avatar for user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/image-logo-avatar-for-user#post-204585</link>
			<pubDate>Wed, 10 Apr 2013 22:21:27 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">204585@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Dasha, I would print_r the $entry, in your gform_after_submission function, so you can see how all the data is being stored and what you need to use.  Then, you use the WordPress function wp_insert_attachment to attach the image to the post, and move it to the media library at the same time.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dashaluna on "Image / logo / avatar for user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/image-logo-avatar-for-user#post-196442</link>
			<pubDate>Thu, 04 Apr 2013 07:36:15 +0000</pubDate>
			<dc:creator>dashaluna</dc:creator>
			<guid isPermaLink="false">196442@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello Chris,&#60;/p&#62;
&#60;p&#62;Thank you for the pointers. However, I'm not sure how to accomplish the 'moving file into the library folder' task.&#60;/p&#62;
&#60;p&#62;I'm using &#60;code&#62;gform_after_submission&#60;/code&#62;  filter and when inspecting $entry I can see the URL where the file has been already uploaded, for example: &#60;code&#62;&#60;a href=&#34;http://example.dev/wp/wp-content/uploads/gravity_forms/GF_related_long_number/2013/04/la-fitness.jpg&#34; rel=&#34;nofollow&#34;&#62;http://example.dev/wp/wp-content/uploads/gravity_forms/GF_related_long_number/2013/04/la-fitness.jpg&#60;/a&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;However, I can't figure out how to get all the necessary info abou it for required by the  &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/wp_insert_attachment&#34; rel=&#34;nofollow&#34;&#62;&#60;code&#62;wp_insert_attachment&#60;/code&#62;&#60;/a&#62; function (array of attachement data, filename).&#60;/p&#62;
&#60;p&#62;Could you please assist me with it: how to get all the data required for an image/file to be uploaded to the media library when using FIle Upload? Is there GF function I can use?&#60;/p&#62;
&#60;p&#62;Many thanks, Dasha
&#60;/p&#62;</description>
		</item>
		<item>
			<title>TrappedPixel on "Image / logo / avatar for user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/image-logo-avatar-for-user#post-195560</link>
			<pubDate>Wed, 03 Apr 2013 12:42:34 +0000</pubDate>
			<dc:creator>TrappedPixel</dc:creator>
			<guid isPermaLink="false">195560@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It seems that this should be a pretty obvious functionality of the user registration... if you can have them upload a picture, why not be able to have it be their avatar? Anyone figured this out? I really need this..
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Image / logo / avatar for user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/image-logo-avatar-for-user#post-190183</link>
			<pubDate>Sat, 30 Mar 2013 00:57:55 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">190183@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I would not use a post field, and I would use the file upload field (I would restrict the uploads to image types.)  It sounds like you want to take the file upload and ensure it gets moved to the media library.   I think the function you want is wp_insert_attachment &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/wp_insert_attachment&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/wp_insert_attachment&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You can run that at the time of gform_after_submission to move the uploaded file to the media gallery.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dashaluna on "Image / logo / avatar for user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/image-logo-avatar-for-user#post-186740</link>
			<pubDate>Wed, 27 Mar 2013 12:59:20 +0000</pubDate>
			<dc:creator>dashaluna</dc:creator>
			<guid isPermaLink="false">186740@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello Chris,&#60;/p&#62;
&#60;p&#62;Thanks for letting me know. I'm trying to use &#60;a href=&#34;http://www.advancedcustomfields.com/&#34; rel=&#34;nofollow&#34;&#62;Advanced Custom Fields plugin&#60;/a&#62; for displaying files in User Profile page.&#60;/p&#62;
&#60;p&#62;I was wondering if it's possible with filters or actions to achieve the following: to get the &#34;File Upload&#34; advanced field to do the following:&#60;/p&#62;
&#60;p&#62;1. Save img to the Media Library?&#60;br /&#62;
2. In the User Registration I've got custom meta field that stores the data of the File Upload. By default it stores full URL. Can I store Media Library Upload (from the step 1) ID?&#60;/p&#62;
&#60;p&#62;I've tried using &#34;Image&#34; post field, but that completely doesn't work with User. I know that &#34;Image&#34; post field uploads to Media and (maybe) uses ID for associating it with a post. Could you help me to implement that bit of functionality for the &#34;File Upload&#34; field?&#60;/p&#62;
&#60;p&#62;I would very much appreciate any tips and help on how to achieve the two issues.&#60;/p&#62;
&#60;p&#62;Many thanks,&#60;br /&#62;
Dasha
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Image / logo / avatar for user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/image-logo-avatar-for-user#post-181909</link>
			<pubDate>Sat, 23 Mar 2013 12:28:47 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">181909@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;There is no support for setting avatar images in Gravity Forms.  You can allow the upload of an image, but you will need to integrate that image with another plugin to store that image as the user's avatar.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>BW H ontwerpers on "Image / logo / avatar for user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/image-logo-avatar-for-user#post-180804</link>
			<pubDate>Fri, 22 Mar 2013 15:28:38 +0000</pubDate>
			<dc:creator>BW H ontwerpers</dc:creator>
			<guid isPermaLink="false">180804@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm trying to do the same thing. Using the file upload function to attach a photo to either the avatar field of the user meta data or maybe to an extra custom field that is attached to the user object.&#60;/p&#62;
&#60;p&#62;Tried using the User registration add-on, but no luck so far.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dashaluna on "Image / logo / avatar for user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/image-logo-avatar-for-user#post-177894</link>
			<pubDate>Wed, 20 Mar 2013 07:45:20 +0000</pubDate>
			<dc:creator>dashaluna</dc:creator>
			<guid isPermaLink="false">177894@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I need to store a logo / image for a user when registering or editing user profile. I also need to have edit / upload capability in the admin side of WP.&#60;/p&#62;
&#60;p&#62;I've checked &#60;a href=&#34;http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields&#34; rel=&#34;nofollow&#34;&#62;Justin Tadlock's tutorial for custom user meta&#60;/a&#62;, but couldn't see the support for an image upload.&#60;/p&#62;
&#60;p&#62;What's the best way to do it?&#60;br /&#62;
Many thanks, Dasha&#60;/p&#62;
&#60;p&#62;WP: 3.5.1.&#60;br /&#62;
Gravity Forms: 1.6.12&#60;br /&#62;
User Registration Add-on: 1.4
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
