codem / DisplayAnything3

File and image gallery module for SilverStripe3.0
BSD 3-Clause "New" or "Revised" License
12 stars 8 forks source link

Error Upload Image Windows #10

Open zoao opened 11 years ago

zoao commented 11 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.

MrJamesEllis commented 11 years ago

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