serialize / deserialize uploadmanager state