Skip to content

Commit

Permalink
use options
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Dec 27, 2018
1 parent d8eb4e3 commit b5fe99f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/Http/Controllers/AlbumController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Symfony\Component\HttpFoundation\StreamedResponse;
use ZipStream\ZipStream;


class AlbumController extends Controller
{
/**
Expand Down Expand Up @@ -459,12 +460,13 @@ function getArchive(Request $request)
{

$opt = array(

'comment' => 'test zip file.',
// 'comment' => 'test zip file.',
'largeFileSize' => 100 * 1024 * 1024,
'enableZip64' => true,
'send_headers'=>true,
);

$zip = new ZipStream($zipTitle);
$zip = new ZipStream($zipTitle, $opt);


// Check if album empty
Expand Down

0 comments on commit b5fe99f

Please sign in to comment.