DONE: increase limit size of profile pic, fix swal error when uploading profile pic large than 2 mb on prod
This commit is contained in:
@@ -122,7 +122,7 @@ class UserController extends BaseCrudController
|
|||||||
'ic_number' => 'sometimes|string|max:255|unique:users,ic_number,'.$user->id,
|
'ic_number' => 'sometimes|string|max:255|unique:users,ic_number,'.$user->id,
|
||||||
'position' => 'sometimes|string|max:255',
|
'position' => 'sometimes|string|max:255',
|
||||||
'phone_number' => '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',
|
'image_url' => 'sometimes|string|max:255',
|
||||||
'gender' => 'sometimes|string|max:255',
|
'gender' => 'sometimes|string|max:255',
|
||||||
'marriage_status' => 'sometimes|string|max:255',
|
'marriage_status' => 'sometimes|string|max:255',
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ http {
|
|||||||
sendfile on;
|
sendfile on;
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
|
|
||||||
|
client_max_body_size 128M;
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
access_log /var/log/nginx/access.log;
|
access_log /var/log/nginx/access.log;
|
||||||
error_log /var/log/nginx/error.log;
|
error_log /var/log/nginx/error.log;
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ http {
|
|||||||
|
|
||||||
sendfile on;
|
sendfile on;
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
|
|
||||||
|
client_max_body_size 128M;
|
||||||
|
|
||||||
access_log /var/log/nginx/access.log;
|
access_log /var/log/nginx/access.log;
|
||||||
error_log /var/log/nginx/error.log;
|
error_log /var/log/nginx/error.log;
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ http {
|
|||||||
sendfile on;
|
sendfile on;
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
|
|
||||||
|
client_max_body_size 128M;
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
access_log /var/log/nginx/access.log;
|
access_log /var/log/nginx/access.log;
|
||||||
error_log /var/log/nginx/error.log;
|
error_log /var/log/nginx/error.log;
|
||||||
|
|||||||
@@ -190,6 +190,9 @@ onMounted(async () => {
|
|||||||
No. {{ authStore.userMemberNumber }}
|
No. {{ authStore.userMemberNumber }}
|
||||||
</Badge>
|
</Badge>
|
||||||
</div>
|
</div>
|
||||||
|
<p class="mt-2 text-xs opacity-70">
|
||||||
|
Gambar profil: maksimum 2 MB (JPEG, PNG, GIF).
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -318,7 +318,6 @@ async function confirmRestore() {
|
|||||||
const headers: TableHeader[] = [
|
const headers: TableHeader[] = [
|
||||||
{ title: 'Bil.', key: '#', sortable: false },
|
{ title: 'Bil.', key: '#', sortable: false },
|
||||||
{ title: 'Name', key: 'name', sortable: true },
|
{ title: 'Name', key: 'name', sortable: true },
|
||||||
{ title: 'Jenis Anggota', key: 'member_type', sortable: true },
|
|
||||||
{
|
{
|
||||||
title: 'Unit',
|
title: 'Unit',
|
||||||
key: 'company_name',
|
key: 'company_name',
|
||||||
|
|||||||
Reference in New Issue
Block a user