use Files.probeContentType only when not in sandbox mode