thanks, i was looking for something like this. but i need it little different.
I want it in auto pilot. I mean when i create a post where i have post some images from remote url, then i want it to fetch them automatically.
suppose its a image tag
<img alt="Tupsu-The Furry Little Monster" src="https://lh3.ggpht.com/t95WR5bz-mKMmq3fEKDgK1QLzGxHeWcRra6ZOViXEHAFDetGjpOtX400pOI1k_LRgEHm=w705" width="635" height="310" />
i want something
<img alt="Tupsu-The Furry Little Monster" src="https://mydomain.com/image/axaaas.jpg" width="635" height="310" />
If possible then one can set the directory name where images will be saved.
and to keep the remote image urls in database in case it can't be found on local server.
and some of images can't be garbed. this is because they have datatypes in url they don't match the extension. it should work on mime.