|
@@ -18,7 +18,7 @@ discard block |
|
|
block discarded – undo |
|
18
|
18
|
$folderName = $date->hour . ':' . $date->minute . ':' . $date->second; |
|
19
|
19
|
$folder = \App::environment() . '/cctv/' . $date->year . '/' . $date->month . '/' . $date->day . '/' . $folderName . '/'; |
|
20
|
20
|
|
|
21
|
|
- $path = Request::file('image')->store($folder); |
|
|
21
|
+ $path = Request::file('image')->store($folder); |
|
22
|
22
|
//$fileData = Image::make($file)->encode('jpg', 80); |
|
23
|
23
|
|
|
24
|
24
|
//$date = Carbon::now(); |
|
@@ -66,7 +66,7 @@ discard block |
|
|
block discarded – undo |
|
66
|
66
|
'ContentType' => 'image/jpg', |
|
67
|
67
|
'ServerSideEncryption' => 'AES256', |
|
68
|
68
|
)); |
|
69
|
|
- } catch(\Exception $e) { |
|
|
69
|
+ } catch (\Exception $e) { |
|
70
|
70
|
\Log::exception($e); |
|
71
|
71
|
} |
|
72
|
72
|
//Log::debug('Image saved :https://s3-eu-west-1.amazonaws.com/buildbrighton-bbms/'.$newFilename); |
Please login to merge, or discard this patch.