Thanks for your reply. I want to get the value (img url) when choosing the image from media gallery. While still editing the post, before save.
I want to show a custom thumbnail. Like the thumbnail that is shown on the acf image upload field after upload.