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

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.

CUSTOM_NGINX_YASUFUMI_YOKOYAMA_GQ_CONFIG_BLOCK: 'client_max_body_size 128M;'



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!

Conclusion

How was it?

You can do it in 5 mins!

Author
yatch

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
nextcloud
Please follow me
The World's Linux Journal

Comments

タイトルとURLをコピーしました