When upscaling photos, usually it's enough to upscale it up to, let's say 4000 pixels for a longer edge, for it to be completely viable and usable online.
When you print stuff though, especially when you print for outdoors, like big billboards, building murals etc. You