<?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: File Upload - Add to &#34;Media Library&#34;</title>
		<link>https://legacy.forums.gravityhelp.com/topic/file-upload-add-to-media-library</link>
		<description>Gravity Support Forums Topic: File Upload - Add to &quot;Media Library&quot;</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 18:38:47 +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/file-upload-add-to-media-library" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "File Upload - Add to &#34;Media Library&#34;"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/file-upload-add-to-media-library#post-194601</link>
			<pubDate>Tue, 02 Apr 2013 16:02:56 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">194601@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If your visitors are uploading files, they are not added to the image gallery by default.  Only post images will be moved to the media gallery.  You can use the wp_insert_attachment function to take the uploaded images and move them to the media gallery:&#60;br /&#62;
&#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 could use the gform_after_submission hook to run your code which calls wp_insert_attachment. &#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;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "File Upload - Add to &#34;Media Library&#34;"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/file-upload-add-to-media-library#post-194551</link>
			<pubDate>Tue, 02 Apr 2013 14:52:09 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">194551@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a form where logged in users upload 10 images for a &#34;sample&#34; gallery on our website. How can I have it so that each of the 10 file uploads are automatically added to the &#34;Media Library&#34; in wordpress so I can easily create the gallery as an admin. Otherwise I have to download the images and then re-upload them into the &#34;Media Library&#34;. &#60;/p&#62;
&#60;p&#62;Thanks&#60;/p&#62;
&#60;p&#62;Bryan
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
