how to get selected image's physical url for sending to server?!?!?!?
You don't need the url just get the data.
@rajabpour, as explained by @gintechsystems you should only need the Data to send the image to the server as follows :
let picker = YPImagePicker()
picker.didFinishPicking { [unowned picker] items, _ in
if let photo = items.singlePhoto {
print(photo.image) // Final image selected by the user (UIIMage)
let imageData = UIImageJPEGRepresentation(photo.image, 1)
// Typically send imageData to server with a multipart request
}
picker.dismiss(animated: true, completion: nil)
}
present(picker, animated: true, completion: nil)
Hope this helps :)
@s4cha great example. What are you adding in the next version related to this?
Most helpful comment
@rajabpour, as explained by @gintechsystems you should only need the
Datato send the image to the server as follows :Hope this helps :)