Is it possible to upgrade the camera on an iPhone 4S?
If you are good enough to design custom cable from say iPhone 5/5S/6 camera sensor to logic board of iPhone 4S then provided there is drivers for that sensor in 4S iOS code it might work.

But no there is no off the shelf solution.