Wordpress backend integration

It would be great if I could hook the backend of my Wordpress website into my nextcloud server. My portfolio is on professional shared hosting because of the easy CDN services it provides. BUT, it would be great if I could just copy and paste a huge number of videos and photos and have them automatically upload to Wordpress and my WP media library.