If you download an uploaded image, it will come back as a .dms file. To avoid this, set the metadata like this:
let metaData = StorageMetadata()
metaData.contentType = “image/jpeg"
ref.putData(imageData, metadata: metaData, completion:
BTW You should post and check for answers in the Comments section of the lesson where the code is, and not in the following lesson.