Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
58a9c27342
1 changed files with 3 additions and 4 deletions
|
@ -109,10 +109,11 @@ class ImageUploadRequest extends Request
|
||||||
\Log::debug('Trying to upload to: '.$path.'/'.$file_name);
|
\Log::debug('Trying to upload to: '.$path.'/'.$file_name);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$upload = Image::make($image->getRealPath())->resize(null, $w, function ($constraint) {
|
$upload = Image::make($image->getRealPath())->setFileInfoFromPath($image->getRealPath())->resize(null, $w, function ($constraint) {
|
||||||
$constraint->aspectRatio();
|
$constraint->aspectRatio();
|
||||||
$constraint->upsize();
|
$constraint->upsize();
|
||||||
});
|
})->orientate();
|
||||||
|
|
||||||
} catch(NotReadableException $e) {
|
} catch(NotReadableException $e) {
|
||||||
\Log::debug($e);
|
\Log::debug($e);
|
||||||
$validator = \Validator::make([], []);
|
$validator = \Validator::make([], []);
|
||||||
|
@ -138,10 +139,8 @@ class ImageUploadRequest extends Request
|
||||||
$cleanSVG = $sanitizer->sanitize($dirtySVG);
|
$cleanSVG = $sanitizer->sanitize($dirtySVG);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
\Log::debug('Trying to upload to: '.$path.'/'.$file_name);
|
|
||||||
Storage::disk('public')->put($path.'/'.$file_name, $cleanSVG);
|
Storage::disk('public')->put($path.'/'.$file_name, $cleanSVG);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
\Log::debug('Upload no workie :( ');
|
|
||||||
\Log::debug($e);
|
\Log::debug($e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue