Raise all file upload limits to 50MB across the stack
PHP (docker/php.ini via conf.d — loaded automatically, no -c flag needed): upload_max_filesize 2M -> 50M post_max_size 8M -> 55M Nginx: client_max_body_size 25M -> 55M Livewire (config/livewire.php published): temporary_file_upload rules max 12MB -> 50MB (max:51200) Laravel validation rules (all in KB): profile photo: 5120 (5MB) -> 51200 (50MB) posts image: 5120 (5MB) -> 51200 (50MB) anuncios image: 5120 (5MB) -> 51200 (50MB) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -22,7 +22,7 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation
|
||||
'apellidoPaterno' => ['nullable', 'string', 'max:255'],
|
||||
'apellidoMaterno' => ['nullable', 'string', 'max:255'],
|
||||
'email' => ['required', 'email', 'max:255', Rule::unique('users')->ignore($user->id)],
|
||||
'photo' => ['nullable', 'mimes:jpg,jpeg,png', 'max:5120'],
|
||||
'photo' => ['nullable', 'mimes:jpg,jpeg,png', 'max:51200'],
|
||||
])->validateWithBag('updateProfileInformation');
|
||||
|
||||
if (isset($input['photo'])) {
|
||||
|
||||
@@ -27,7 +27,7 @@ class AnuncioController extends Controller
|
||||
$data = $request->validate([
|
||||
'title' => 'required|string|max:200',
|
||||
'body' => 'nullable|string|max:3000',
|
||||
'image' => 'nullable|image|max:5120',
|
||||
'image' => 'nullable|image|max:51200',
|
||||
'type' => 'required|in:info,promocion,mantenimiento,aviso',
|
||||
'audience' => 'required|array|min:1',
|
||||
'audience.*' => 'string',
|
||||
@@ -63,7 +63,7 @@ class AnuncioController extends Controller
|
||||
$data = $request->validate([
|
||||
'title' => 'required|string|max:200',
|
||||
'body' => 'nullable|string|max:3000',
|
||||
'image' => 'nullable|image|max:5120',
|
||||
'image' => 'nullable|image|max:51200',
|
||||
'type' => 'required|in:info,promocion,mantenimiento,aviso',
|
||||
'audience' => 'required|array|min:1',
|
||||
'audience.*' => 'string',
|
||||
|
||||
@@ -29,7 +29,7 @@ class PostController extends Controller
|
||||
{
|
||||
$request->validate([
|
||||
'body' => 'nullable|string|max:2000',
|
||||
'image' => 'nullable|image|max:5120',
|
||||
'image' => 'nullable|image|max:51200',
|
||||
]);
|
||||
|
||||
if (!$request->filled('body') && !$request->hasFile('image')) {
|
||||
|
||||
Reference in New Issue
Block a user