HOC SiteDocumentation

import_file_from_url

Fetch a public HTTPS image (SSRF-guarded), resize it, and store a WebP in the website library. Rejects non-images and bodies over 20 MB. upload_file_from_url stays CDN-only.

import_file_from_url · Group: files

Fetch a public HTTPS image (SSRF-guarded), resize it, and store a WebP in the website library. Rejects non-images and bodies over 20 MB. upload_file_from_url stays CDN-only.

Inputs

FieldRequiredNotes
websiteIdrequired
urlrequired
maxWidthoptionalMax width in pixels. Default 1600.
qualityoptionalWebP quality 1–100. Default 80.
directoryIdoptional

Maps to

  • POST /api/v1/{locale}/{websiteId}/files/import-url → API