<?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: Add a prefix to file uploads</title>
		<link>https://legacy.forums.gravityhelp.com/topic/append-a-prefix-to-file-uploads</link>
		<description>Gravity Support Forums Topic: Add a prefix to file uploads</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 08:27:18 +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/append-a-prefix-to-file-uploads" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Add a prefix to file uploads"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/append-a-prefix-to-file-uploads#post-76136</link>
			<pubDate>Tue, 18 Sep 2012 18:15:49 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">76136@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you @bristweb.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bristweb on "Add a prefix to file uploads"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/append-a-prefix-to-file-uploads#post-76121</link>
			<pubDate>Tue, 18 Sep 2012 16:11:55 +0000</pubDate>
			<dc:creator>bristweb</dc:creator>
			<guid isPermaLink="false">76121@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;i made a post to help with this:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/file-upload-location-and-name#post-76119&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/file-upload-location-and-name#post-76119&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>simbian on "Add a prefix to file uploads"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/append-a-prefix-to-file-uploads#post-39661</link>
			<pubDate>Wed, 02 Nov 2011 10:23:23 +0000</pubDate>
			<dc:creator>simbian</dc:creator>
			<guid isPermaLink="false">39661@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;thanks for the tip Alex, i will look for to get it working...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Add a prefix to file uploads"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/append-a-prefix-to-file-uploads#post-39657</link>
			<pubDate>Wed, 02 Nov 2011 10:03:09 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">39657@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello Simone,&#60;br /&#62;
We don't have a hook to easily allow you to change the file name as the file is uploaded. However, you can use the gform_after_submission hook to rename the file after it has been uploaded.&#60;br /&#62;
Following is a documentation of that hook.&#60;br /&#62;
&#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;
&#60;p&#62;You will need to read the $entry variable to get the current file name. You will then have to rename the actual file as well as update the database record to match the new file name.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>simbian on "Add a prefix to file uploads"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/append-a-prefix-to-file-uploads#post-39587</link>
			<pubDate>Tue, 01 Nov 2011 16:54:09 +0000</pubDate>
			<dc:creator>simbian</dc:creator>
			<guid isPermaLink="false">39587@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello to all, as i wanna limit the access to the form to only registered users i also would like to know if it's possible to automatically set a prefix (hidden for the users) to file uploads so i can know which user has uploaded the files.&#60;/p&#62;
&#60;p&#62;I would generate the prefix dinamically using the Wordpress global variable $user_login &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/get_currentuserinfo&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/get_currentuserinfo&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;So an example: the registered user Joe access the form and upload a file called sample.zip, in the upload folder of my web server so i should have the file named Joe_sample.zip&#60;/p&#62;
&#60;p&#62;thanks,&#60;br /&#62;
Simone from Italy
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
