Mock upload photo API.