uploading images from url

Permalink
In v 5.7.2 how do we upload images to filemanger from a url programticaly?