Documentation

Unable to upload the file

Surreal CMS updated your page, but your server refused the new copy. You'll see this message when you publish or upload files:

Unable to upload the file to your server. Your account may not have permission to write here, or the server may be out of space.

If this happens to the page you're publishing, the file on your server hasn't changed and your changes are still in the editor. If it happens to another page that shares an include with it, only that page wasn't updated.


Common causes

  • The user can't write to the file. The user you connect with needs permission to write to your website's files and folders. This often happens when the files belong to another user, such as root or www-data. Your host can fix the permissions.
  • The disk is full. Your hosting account may be out of space.
  • The server limits uploads. Some WebDAV servers limit how large a file can be, or refuse uploads to certain folders.
  • The bucket doesn't allow ACLs. With Amazon S3, turn off Access Control List (ACL) in Edit Site if your bucket has ACLs disabled.

How to fix it

Upload any file to the same folder with another app. If that fails too, the problem is on the server, and your host can tell you why. Once it works, publish again.


If you're still stuck, contact us and tell us which site and page you're publishing.