Have you considered doing a "map" instead of a match?
fileParams.get("profilePic").map(file => (file.get(), file.contentType.getOrElse("application/octet-stream"), file.name))
This will work in the cases when you do have a file uploaded, and will return None
in the cases where nothing is present