2010-09-18, 06:56:12
Is there any reason why this shouldnt be the default way to handle this? I dont see any reason...
john5 Wrote:Following line in "admin/upload-ajax.php" (GS2.01) calculates wrong path when used with Apache alias:
Code:$targetPath = $_SERVER['DOCUMENT_ROOT'] . $_REQUEST['folder'] . '/';
EDIT:
Dirty/quick fix is to just replace it with following:
Code:$targetPath = get_root_path() . 'data/uploads/';