We’ve all been there: you’ve spent hours editing a high-quality video, you go to upload it to your WordPress Media Library, and just as the progress bar hits the end… “Unexpected response from the server. The file may have been uploaded successfully.”
I recently ran into this exact issue while trying to upload a 150MB video to a site hosted on Hetzner and managed by SpinupWP. My PHP settings were already set to 256MB, and my memory limits seemed fine, yet the upload failed every single time.
After digging into the server architecture and logs, I realized that when you’re using a high-performance stack like SpinupWP + Nginx + Cloudflare, there are hidden “gatekeepers” that can kill your upload before it ever reaches WordPress.
Here is the exact solution that finally fixed the issue for me.
Even if your WordPress dashboard says you can upload 256MB, other layers of your tech stack might be blocking you:
.user.ini is helpful, Nginx usually blocks the file before PHP can even process it.Before touching the server, this is non-negotiable for any file over 100MB. Because my file was 150MB, Cloudflare’s proxy was terminating the connection at the “edge”.
client_max_body_sizeSince SpinupWP uses Nginx, you have to manually tell the server to allow larger “bodies” (the technical term for your file upload).
cd /etc/nginx/sites-available/yourdomain.com/server/sudo nano uploads.confclient_max_body_size 256M;Ctrl+O, then Enter, then Ctrl+X.sudo nginx -t (Wait for “syntax is ok”) sudo service nginx reloadAfter toggling Cloudflare to “Grey Cloud” and adding that one line to the Nginx config, the 150MB video uploaded perfectly on the first try.
If you are running a similar “LEMP” stack, remember that WordPress settings are only half the battle. You have to make sure the server software (Nginx) and your DNS provider (Cloudflare) are also configured to handle the heavy lifting.
Schedule a free consultation today.

Design My Website are a web design company based in Kerry. The majority of our meetings are done via video call but we can travel within Munster.