Actually I've solved it with a forced restart when I discovered the other iPad pro had no problemsSince I updated to ios 17.1.1, I can no longer upload photos to Mastodon or Facebook. I suspect it's something to do with security settings but can't locate anything meaningful in the security settings for safari or photos.