moved file api feature detection to viewmodel