DONE: increase limit size of profile pic, fix swal error when uploading profile pic large than 2 mb on prod (#15)
Build Docker Image / build-backend (push) Successful in 53s
Build Docker Image / build-frontend (push) Successful in 20s

Co-authored-by: ISMAIL MASSERAN <topaz@ISMAILs-Macbook.local>
Reviewed-on: #15
This commit was merged in pull request #15.
This commit is contained in:
2026-07-19 12:51:31 +08:00
parent 06b687f408
commit f298ec2788
6 changed files with 13 additions and 2 deletions
@@ -122,7 +122,7 @@ class UserController extends BaseCrudController
'ic_number' => 'sometimes|string|max:255|unique:users,ic_number,'.$user->id,
'position' => 'sometimes|string|max:255',
'phone_number' => 'sometimes|string|max:255',
'image' => 'sometimes|image|mimes:jpeg,png,jpg,gif|max:2048',
'image' => 'sometimes|image|mimes:jpeg,png,jpg,gif|max:5120',
'image_url' => 'sometimes|string|max:255',
'gender' => 'sometimes|string|max:255',
'marriage_status' => 'sometimes|string|max:255',
@@ -9,6 +9,9 @@ http {
sendfile on;
keepalive_timeout 65;
# Allow multipart uploads (profile images, docs). Default nginx limit is 1m.
client_max_body_size 10M;
# Logging
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
+3
View File
@@ -9,6 +9,9 @@ http {
sendfile on;
keepalive_timeout 65;
# Allow multipart uploads (profile images, docs). Default nginx limit is 1m.
client_max_body_size 10M;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
+3
View File
@@ -9,6 +9,9 @@ http {
sendfile on;
keepalive_timeout 65;
# Allow multipart uploads (profile images, docs). Default nginx limit is 1m.
client_max_body_size 10M;
# Logging
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;