Index: plupload.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/plupload/plupload.module,v retrieving revision 1.1 diff -u -p -r1.1 plupload.module --- plupload.module 30 Jun 2010 02:51:56 -0000 1.1 +++ plupload.module 13 Sep 2010 21:41:59 -0000 @@ -134,7 +134,7 @@ function plupload_pernode() { if (strpos($content_type, "multipart") !== false) { if (isset($_FILES['file']['tmp_name']) && is_uploaded_file($_FILES['file']['tmp_name'])) { // Open temp file - $out = fopen($targetDir . DIRECTORY_SEPARATOR . $file_name, $chunk == 0 ? "wb" : "ab"); + $out = fopen($temp_directory . DIRECTORY_SEPARATOR . $file_name, $chunk == 0 ? "wb" : "ab"); if ($out) { // Read binary input stream and append it to temp file $in = fopen($_FILES['file']['tmp_name'], "rb");