in api/src/main/scala/com/gu/adapters/http/Image.scala [23:29]
def getImageFromFile(fileParams: FileSingleParams): Either[Error, (Array[Byte], String, String)] = {
for {
nameAndBytes <- readBytesFromFile(fileParams)
(fname, bytes) = nameAndBytes
mimeType <- validate(bytes)
} yield (bytes, mimeType, fname)
}