Upload image url

Hi @kuwaitbinary,

thanks for the mention! I think I found a possible root cause for both the async image import and the upload from url feature not working. It seems the Strapi upload service, allthough documented to handle both files and Buffers, can only handle files since it expects a path attribute to exist on the uploaded file.
When working with Buffers however, there is no file path as the file is not created and only exists as Buffer in memory. By simply adding a check if the path attribute exists, I could work around this and effectively upload images to the media library, even without user info (as long as I make the media / upload endpoint publicly accessible).

I’ve created a fork from the Strapin repo, please see the diff here: Comparing strapi:master...4levels:master · strapi/strapi · GitHub

I’m currently testing my suspicions, I’ll keep you posted here as well.

Kind regards,

Erik aka 4levels