Fix up the local fs NPE problem and ensure we get file size and mime-type