I need to be able to side load an image and attach to an entry.
My image is coming from an external url... such as http://someplace.com/image.jpg - i can store this in a temporary file so its locally accessible. But then how do I upload this image (without using $_POST or $_FILES) and attach to an entry.
The method i'm trying at the moment i'm using something like: uploadNewAsset(UploadedFile $uploadedFile, $folderId)
But UploadedFile seems to only want to accept POST variables, unless i'm missing something
Any help would be great