Skip to content

Commit 3051873

Browse files
author
Jovert Lota Palonpon
committed
Fix #36
1 parent c14d52a commit 3051873

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

nginx.conf.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ server {
55
access_log /var/log/nginx/access.log;
66
root /var/www/html/public;
77
server_name example.com;
8+
client_max_body_size 25M;
89

910
location ~ \.php$ {
1011
try_files $uri =404;

php.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
upload_max_filesize=50M
2-
post_max_size=50M
1+
upload_max_filesize=25M
2+
post_max_size=25M

resources/js/views/__backoffice/users/Forms/Avatar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class Avatar extends Component {
134134
<Dropzone
135135
initialFiles={files}
136136
maxFiles={1}
137-
maxFileSize={5}
137+
maxFileSize={25}
138138
handleUpload={this.handleUpload}
139139
handleFileRemoved={this.handleFileRemoved}
140140
/>

0 commit comments

Comments
 (0)