Jump to content

Sorry, an unknown server error occurred when uploading


Go to solution Solved by Meap,

Recommended Posts

Posted

Sorry, an unknown server error occurred when uploading this file.
(Error code: -200)

I get this error when I try to upload some files. It doesn't happen to all files so I don't know it's exact origin. Nothing is popping up in the system logs and it doesn't seem to be a file type issue.

Any help would by highly appreciated.

  • Solution
Posted

Found a fix.

If you are using nginx, go into your /etc/nginx config or the config of your specific website in the etc/nginx/sites-available folder.
Edit the config using nano (or any other preffered editor)
Add this line at the bottom of the http or server block and change it to the maximum upload file size you want to allow (I have it set to 200MB):

Either:


http {
    client_max_body_size 200M;
}


Or:

 

server {
    client_max_body_size 200M;
}


save the config and then do: sudo service nginx restart
You are now done and should be able to upload just fine.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...