At the moment i am working on database conversation script from other cms to Wordpress and faced one problem: I have a list of images, so i need to upload it to Wordpress, after it receive new link, change it with the old one in the post and insert this post. So i wondering if is possiple after
wp_insert_post somehow assign image id's to the post which just been inserted.
P.S. And also is there a method that after upload return url of file?