askvortsov Thanks for your quick reply. I add the following content to /etc/nginx/nginx.conf
,
http {
client_max_body_size 8M;
//other lines...
}
and then reload
sudo systemctl reload nginx.service
the error turned to 422 Unprocessable Entity
with the following content:
POST https://bbs.viva-la-vita.org/api/users/1/avatar
avatar 不能为空
where 不能为空 means "cannot be null". What should I do then?