diff --git a/CHANGELOG.md b/CHANGELOG.md index 14d577717..3578d5b22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## [Unreleased](https://github.com/laravel/octane/compare/v1.0.4...1.x) +### Fixed +- Uploaded files moving ([#317](https://github.com/laravel/octane/pull/317)) ## [v1.0.4 (2021-06-08)](https://github.com/laravel/octane/compare/v1.0.3...v1.0.4) diff --git a/config/octane.php b/config/octane.php index 5018a3a7b..20007c7ac 100644 --- a/config/octane.php +++ b/config/octane.php @@ -14,6 +14,7 @@ use Laravel\Octane\Listeners\CollectGarbage; use Laravel\Octane\Listeners\DisconnectFromDatabases; use Laravel\Octane\Listeners\EnsureUploadedFilesAreValid; +use Laravel\Octane\Listeners\EnsureUploadedFilesCanBeMoved; use Laravel\Octane\Listeners\FlushTemporaryContainerInstances; use Laravel\Octane\Listeners\ReportException; use Laravel\Octane\Listeners\StopWorkerIfNecessary; @@ -63,6 +64,7 @@ 'listeners' => [ WorkerStarting::class => [ EnsureUploadedFilesAreValid::class, + EnsureUploadedFilesCanBeMoved::class, ], RequestReceived::class => [ diff --git a/fixes/fix-symfony-file-moving.php b/fixes/fix-symfony-file-moving.php new file mode 100644 index 000000000..25ed4593f --- /dev/null +++ b/fixes/fix-symfony-file-moving.php @@ -0,0 +1,10 @@ +app->singleton(Listeners\EnforceRequestScheme::class); $this->app->singleton(Listeners\EnsureRequestServerPortMatchesScheme::class); $this->app->singleton(Listeners\EnsureUploadedFilesAreValid::class); + $this->app->singleton(Listeners\EnsureUploadedFilesCanBeMoved::class); $this->app->singleton(Listeners\FlushAuthenticationState::class); $this->app->singleton(Listeners\FlushQueuedCookies::class); $this->app->singleton(Listeners\FlushSessionState::class);