Import data from url file?

Hello. Can I import data from the file by URL? For example, file_get_contents('https://site.ru/file.txt");

Try using resources.GetRemote.

See the doc:

1 Like

@alexandros , thanks, but I need to get the content of this file.

{{ (resources.GetRemote "https://gohugo.io/readfiles/testing.txt").Content }}

Perfect! Thank u!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.