Fix zip file names on Windows

This commit is contained in:
Chris Kankiewicz
2020-02-26 11:24:43 -07:00
parent b07749ea71
commit 975b4f40b4

View File

@@ -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(