Since purchased the new iPhone 15 pro, it seems that the iOS Dropbox app can't automatically switch to the macro lens (the ultra wide lens), so it can't focus small documents (like tickets or barcodes).
This same error occurs in other third party apps.
Apple says is the "developer fault" because they are making the wrong call to the camera function, and so it only uses the main camera, that in the 14 and 15 pro models can't close focus.