I had an issue moving a site from IIS to an apache server so I added a test if the server was IIS then define the temp directory constants
<?php if( stripos( $SERVER['SERVERSOFTWARE'] , 'IIS' ) ){ define('WPTEMPDIR', iniget('uploadtmpdir')); putenv('TMPDIR=' . iniget('uploadtmpdir')); } ?> </code>
I had an issue moving a site from IIS to an apache server so I added a test if the server was IIS then define the temp directory constants
<?php if( stripos( $SERVER['SERVERSOFTWARE'] , 'IIS' ) ){ define('WPTEMPDIR', iniget('uploadtmpdir')); putenv('TMPDIR=' . iniget('uploadtmpdir')); } ?> </code>