Raspi + Nextcloud (or a simple lightweight WebDAV server) could be a good choice. Or any NAS.
Direct Device 2 Device would certainly be a cool thing (especially if they can discover each other over your local network), but I think having a little server in the middle should be doable. Or you simply host the WebDAV server on your PC ... many possibilities :-)