I'm creating a plugin that uses the insert_files_for_item() function. I think I'm passing in all parameters correctly:
insert_files_for_item($created, 'Url', array($url->loc)), but I keep getting the following error importing items from ContentDM:
Could not transfer the file from "http://dc.lib.unc.edu/utils/getfile/collection/sohp/id/16997/filename/17039.mp3"
to "/var/folders/5d/10pj_hmn1dnf2klj99tgd7xrnm42t5/T/8098854c7f7d72866229dc0c2999555c.mp3": Passed parameter is not a valid HTTP URI.
The dc.lib.unc.edu path is valid as using Curl or visiting the link directly works as expected and downloads the file.