Anyone knows how to upload large multiple files to s3 with laravel 5? i tried to use streams but it works only for files less than 5M, here is my code:
foreach ($request->file('photos') as $file) {
$filename = $file->getClientOriginalName();
$s3 = \Storage::disk('s3');
$filePath = '/uploads/' . $filename;
$stream = fopen($file->getRealPath(), 'r+');
$s3->put($filePath, $stream);
}
i tried to update settings in my php.ini as well like this but no change
upload_max_filesize = 50M
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire