asFileDataOrNull

Returns the part as a FileDataPart if it represents a file, and null otherwise