photo upload online/offline switch