1 (edited by Ivor H 2010-06-12 00:52:32)

Topic: Alternative $targetDir setting

Like others in this Forum, I have had some problems getting Plupload to work on a production server. The modification below works well on two servers I use.

Change line 21 in upload.php from this:
$targetDir = ini_get("upload_tmp_dir") . DIRECTORY_SEPARATOR . "plupload";

to this:
$targetDir = realpath('./') . DIRECTORY_SEPARATOR . "uploads";

(It will make a folder called uploads in the same directory.)