<?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: Path to /tmp is hardcoded ?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/path-to-tmp-is-hardcoded</link>
		<description>Gravity Support Forums Topic: Path to /tmp is hardcoded ?</description>
		<language>en-US</language>
		<pubDate>Fri, 17 Apr 2026 03:43:13 +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/path-to-tmp-is-hardcoded" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Path to /tmp is hardcoded ?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/path-to-tmp-is-hardcoded#post-48317</link>
			<pubDate>Fri, 03 Feb 2012 18:28:30 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">48317@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Gravity Forms does not hardcode any paths.  The tmp folder location isn't hardcoded by Gravity Forms and is dependent upon the location of your WordPress uploads folder.&#60;/p&#62;
&#60;p&#62;For example this line:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;self::get_upload_path($form_id) . &#34;/tmp/&#34; .&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;It's using the core WordPress function get_upload_path and then appending the tmp folder name as part of the path because Gravity Forms creates a folder called &#34;tmp&#34; within your WordPress upload folder.&#60;/p&#62;
&#60;p&#62;Gravity Forms uses built in WordPress functions related to getting proper paths such as get_upload_path whenever it interacts with the file system.&#60;/p&#62;
&#60;p&#62;There is nothing in that code that needs to be corrected.  In fact, some of the code they included examples for AREN'T Gravity Forms code it's core WordPress code.&#60;/p&#62;
&#60;p&#62;wp-includes/js/tinymce/plugins/spellchecker/config.php is core WordPress&#60;br /&#62;
wp-includes/functions.php is core WordPress&#60;br /&#62;
wp-includes/class-snoopy.php is core WordPress&#60;/p&#62;
&#60;p&#62;Your host can't just move /tmp/ folders around.  WordPress wants the /tmp/ folder to be located in the wp-content/uploads folder wherever that may be.  You can move your wp-content folder, but you need to know what you are doing so and based on this i'd say your web host has no clue what it is doing.&#60;/p&#62;
&#60;p&#62;Your host is incorrect and their response should certainly give you pause and rethink who you do business with as far as web hosting goes.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jacksonsage on "Path to /tmp is hardcoded ?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/path-to-tmp-is-hardcoded#post-47136</link>
			<pubDate>Mon, 23 Jan 2012 10:09:37 +0000</pubDate>
			<dc:creator>jacksonsage</dc:creator>
			<guid isPermaLink="false">47136@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Let me start off by saying, this is way over my head (I am a designer not a programmer, however I am learning more about the programming end), however, my host is saying that I would need to change code and that it seems to be a bug in gravity forms....&#60;/p&#62;
&#60;p&#62;Apparently POST wordpress/gravity forms install, my host moved the the /tmp file to my own root directory.  In other words, site was working fine and without notice they moved this directory or what ever they did.&#60;/p&#62;
&#60;p&#62;I then had no issues with gravity forms, my issue was being able to upload images via wordpress.  However after they &#34;fixed&#34; the php.ini file it still did not correct the issue and this is what they sent me.&#60;/p&#62;
&#60;p&#62;Here is what he host sent me, some of the listed items are wordpress:&#60;br /&#62;
&#60;em&#62;&#34;The wordpress modules you are using have some bad code in them:&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;&#60;em&#62;See how the path to /tmp is hardcoded ?&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;&#60;em&#62;Instead the module should get the value from php for upload_tmp_dir and use that.&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;&#60;em&#62;rg /tmp *&#60;/em&#62;&#60;br /&#62;
&#60;em&#62;wp-content/plugins/gravityforms/forms_model.php: $temp_filepath = self::get_upload_path($form_id) . &#34;/tmp/&#34; . $file_info[&#34;temp_filename&#34;];&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;&#60;em&#62;wp-content/plugins/gravityforms/forms_model.php: $source = self::get_upload_path($form_id) . &#34;/tmp/&#34; . $tempfile_info[&#34;temp_filename&#34;];&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;&#60;em&#62;wp-content/plugins/gravityforms/form_display.php: $target_path = RGFormsModel::get_upload_path($form[&#34;id&#34;]) . &#34;/tmp/&#34;;&#60;/em&#62;&#60;br /&#62;
&#60;em&#62;wp-includes/Text/Diff.php: $tmp_locations = array('/tmp', '/var/tmp', 'c:\WUTemp', 'c:\temp',&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;&#60;em&#62;wp-includes/functions.php: * Function's preference is to WP_CONTENT_DIR followed by the return value of &#60;code&#62;sys_get_temp_dir()&#60;/code&#62;, before finally defaulting to /tmp/&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;&#60;em&#62;wp-includes/functions.php: $temp = '/tmp/';&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;&#60;em&#62;wp-includes/class-snoopy.php: var $temp_dir = &#34;/tmp&#34;; // temporary directory that the webserver&#60;/em&#62;&#60;br /&#62;
&#60;em&#62;wp-includes/js/tinymce/plugins/spellchecker/config.php: $config['PSpellShell.tmp'] = '/tmp'; &#60;/em&#62;&#60;/p&#62;
&#60;p&#62;So, they basically said I had to fix this code and then deliver it to them!  So I am not at all sure what I am suppose to do, but wanted to find out, is this bad code, and if I do fix the code, how do I fix the code, and will it cause issues when a new version is released.  Like I said this is a bit over my head!&#60;/p&#62;
&#60;p&#62;Thanks in advance for your help!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
