Skip to content

Latest commit

 

History

History
48 lines (40 loc) · 991 Bytes

File metadata and controls

48 lines (40 loc) · 991 Bytes

URL

The URL file generator accepts a string as its options, containing a valid URL. This generator downloads the file at that URL, returning the results.

Downloaded files may be a maximum of 20 megabytes, even when used within other file generators (like ZIP).

Options

This file generator accepts a string containing a valid HTTP or HTTPS URL. It does not support any other options.

{
  "url": URL
}

Example

{% tabs %} {% tab title="Liquid" %}

{% raw %}
{% action "files" %}
  {
    "image_from_url.png": {
      "url": "https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png"
    }
  }
{% endaction %}
{% endraw %}

{% endtab %}

{% tab title="JSON" %}

{
  "action": {
    "type": "files",
    "options": {
      "image_from_url.png": {
        "url": "https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png"
      }
    }
  }
}

{% endtab %} {% endtabs %}