An unknown error has occured when uploading file

Hi guys! I was trying to upload a large zip file (about 2 GB) when it automatically cancelled the upload and gave me a message saying “An unknown error has occured”. It was working fine just the other day. How can I fix this? Any help is appreciated!

I fixed it guys! I am running truenas. I went into the /usr/local/etc/nginx/conf.d folder and edited the nextcloud.inc file to meet my size requirements. Hope this help someone!