barryvdh / laravel-elfinder

elFinder bundle for Laravel
738 stars 171 forks source link

Uploading files to a Windows IIS Azure app #272

Open RAIDfire opened 4 years ago

RAIDfire commented 4 years ago

Hi,

We're having a problem using this package on a Windows platform. Files upload and are created, however they are empty - 0 byte. If the file is deleted & then re-uploaded all is well; this is also the case if the 0byte file is overwritten.

Any advice appreciated.

Initially we had all kinds of errors traced to line 639 of elFinder.class.php,, removing the hard coded '/.tmp' and replacing with DIRECTORY_SEPERATOR . '.tmp' fixed that issue on Windows.... elFinder::$commonTempPath = (isset($opts['commonTempPath']) ? realpath($opts['commonTempPath']) : dirname(FILE) . DIRECTORY_SEPARATOR . '.tmp');

"require": { "php": "^7.2", "backpack/crud": "4.0.*", "backpack/pagemanager": "^2.0", "backpack/permissionmanager": "^5.0", "barryvdh/laravel-elfinder": "^0.4.4", "fideloper/proxy": "^4.0", "guzzlehttp/guzzle": "^6.4", "kevinrob/guzzle-cache-middleware": "^3.2", "laravel/framework": "^6.0", "laravel/tinker": "^1.0", "mailjet/laravel-mailjet": "^2.1", "usmanhalalit/laracsv": "^2.0" }, "require-dev": { "backpack/generators": "^2.0", "facade/ignition": "^1.4", "fzaninotto/faker": "^1.4", "laravel/ui": "^1.0", "mockery/mockery": "^1.0", "nunomaduro/collision": "^3.0", "phpunit/phpunit": "^8.0" },