This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

triasrahman
triasrahman

I need to build a web service that getting image from another website, for example http://domain.com/file.jpg. I can get the content easily using file_get_contents($url). But the problem is I can't put this data into the System File model by OctoberCMS. Anyone can help me please?

Thanks!

alxy
alxy

You need to temporarily save it on your server, then you can create a file model from that path...

triasrahman
triasrahman

Solved. Thanks @alxy.

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.