Posted by littlecoding on October 28, 2015 at 2:23pm
Have been handed the task of doing some work on a Drupal site that is bing hosted on a Windows box and I can see that the temp directory in the Drupal install is setup with a Linux system in mind. What is the best practice for the temp directory when using IIS? All the Durpal.org documentation says is to not have it web accessible.

Comments
That's really about it.
That's really about it. Drupal will clean-up its temporary files, depending on the type either instantaneously, or on cron. If you want to put the temp files in the same place as everything else does, I think you can set it to %TEMP%
--
Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his
How about location? I keep
How about location?
I keep seeing tutorials for this type of setup with the temp directory as "sites/default/files/tmp", but that is in a web accessible area and would not follow Drupal's best practices.
Yikes, even shared hosting
Yikes, even shared hosting environments that I've seen give you a tmp folder outside of the web root.
echo %TEMP%
should give you what you need.
You might even be able to set it directly to
%TEMP%
--
Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his