CSRF check failed when trying to share files

Solution here so you don’t have to switch to GitHub.
If you are using Apache then look if the mod_rewrite module is enabled and your virtual host has AllowOverride All configured.