mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-29 23:22:34 +01:00
Updated packages and added better upload failure logging
To fix #2689 Updates all packages but mainly focused on aws-sdk
This commit is contained in:
parent
0c880def5e
commit
60ffe6a993
@ -202,6 +202,7 @@ class AttachmentService
|
|||||||
try {
|
try {
|
||||||
$storage->put($attachmentPath, $attachmentData);
|
$storage->put($attachmentPath, $attachmentData);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
\Log::error('Error when attempting file upload:' . $e->getMessage());
|
||||||
throw new FileUploadException(trans('errors.path_not_writable', ['filePath' => $attachmentPath]));
|
throw new FileUploadException(trans('errors.path_not_writable', ['filePath' => $attachmentPath]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -109,6 +109,7 @@ class ImageService
|
|||||||
$storage->put($fullPath, $imageData);
|
$storage->put($fullPath, $imageData);
|
||||||
$storage->setVisibility($fullPath, 'public');
|
$storage->setVisibility($fullPath, 'public');
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
\Log::error('Error when attempting image upload:' . $e->getMessage());
|
||||||
throw new ImageUploadException(trans('errors.path_not_writable', ['filePath' => $fullPath]));
|
throw new ImageUploadException(trans('errors.path_not_writable', ['filePath' => $fullPath]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
466
composer.lock
generated
466
composer.lock
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user