1
let taskToPost = PFObject(className:"TasksTest2")

 let imageData = UIImagePNGRepresentation(imageTest.image!)
                let imageFile = PFFile(name: "image1.png", data: imageData!)
                taskToPost["imageFile"] = imageFile

I use the simulator ( and the default images in the simulator library) to upload text and images to Parse, the text works fine but I keep getting an error for the image. Says that the image is above 10 megs. How can i resize the image to under 10 megs ?

rmaddy
  • 314,917
  • 42
  • 532
  • 579

0 Answers0