wp-admin blocking causing http error on uploads
Works on my side. Try disabling your plugins and test again. Btw. You could use admin_init instead of the init action hook. This way, the snippet will only be executed on admin requests. This way, you can remove the is_admin() check in the function.