mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-28 08:10:51 +02:00
Fix zip file names on Windows
This commit is contained in:
@@ -75,7 +75,7 @@ class ZipHandler
|
||||
|
||||
$response->getBody()->write($tempFile->getContents());
|
||||
|
||||
$filename = Collection::make(explode('/', $path))->last();
|
||||
$filename = Collection::make(explode(DIRECTORY_SEPARATOR, $path))->last();
|
||||
|
||||
return $response->withHeader('Content-Type', 'application/zip')
|
||||
->withHeader('Content-Disposition', sprintf(
|
||||
|
Reference in New Issue
Block a user