How to resolve An unknown error has occurred while uploading files to Nextcloud?

Reading Time: < 1 minute

I faced problem like below when I upload file.
An unknown error has occurred

Conclusion is HTTP 413 Request Entity Too Large happened in my environment.

I expanded upload limit size to 128MB.

First is https-portal which acts as reverse proxy.
You only need to insert this line.


Next is configuraiton of Nginx.
You need to add this line to server block.

client_max_body_size 128M;

After editing them, you need to restart each Nginx!


How was it?

You can do it in 5 mins!


I am Japanese software engineer having over 15 years career in embedded system software.
I have worked for designing/quality assurance products which has embedded linux.
I love Raspberry Pi.
I am also interested in stock market.
I married Hong Konger as international marriage.

Please follow me
Please follow me
The World's Linux Journal