Uploads from site on Server A uploaded on Server B (Like sort of CDN)


Short overview of the situation: On server A there’s an site. Server B is used for files. I want that uploads made on server A (running one wordpress site) are uploaded on server B.

I’ve changed the path to another server.
upload_path = uploads
upload_url_path = https://sub.domain/uploads

For some reason the URL is right, but the files aren’t transferred. I checked the permissions of the folder and they are 777.