Open zoao opened 12 years ago
In file DisplayAnythingGallery.php line 598 original: $uploadPath = "/" . trim(ASSETS_PATH, "/ ") . $targetDirectory; replace wit: $uploadPath = trim(ASSETS_PATH, "/ ") . $targetDirectory;
In file XHR.php after line 28 "fclose($input);" add this line: fclose($this->tmp_handle); Because if not close the file, then we can not rename it.
Thanks for the feedback.
Can you make that a pull request so we don't have to cherry pick code - less room for error.
Thanks James
In file DisplayAnythingGallery.php line 598 original: $uploadPath = "/" . trim(ASSETS_PATH, "/ ") . $targetDirectory; replace wit: $uploadPath = trim(ASSETS_PATH, "/ ") . $targetDirectory;
In file XHR.php after line 28 "fclose($input);" add this line: fclose($this->tmp_handle); Because if not close the file, then we can not rename it.