I am referring to this codex, https://codex.wordpress.org/Function_Reference/media_handle_upload
There I can attach the uploaded image to the post as attachments by this :
$attachment_id = media_handle_upload( 'my_image_upload', $_POST['post_id'] );
But, I want to just get the
url of the uploaded image, without adding the image as the post attachments.
How can I get that uploaded image url ?