Fixed local file type method to return file content type
Added config default value to be null