Skip to content

Themes: environment://.. stream definition in themes blueprint not working #71

Description

@nerdyjan

i use a custom theme on a multisite installation with stream definitions:

  image:
    type: Stream
    prefixes:
      '': ['environment://images']

and in the themes blueprint.yaml i have this form:

form:
  validation: loose
    custom_logo:
      type: file
      label: THEME_QUARK.ADMIN.CUSTOM_LOGO
      size: large
      destination: 'environment://images/logo'
      multiple: false
      markdown: true
      description: THEME_QUARK.ADMIN.CUSTOM_LOGO_DESCRIPTION
      accept:
        - image/*

By uploading an image at the themes settings page i get:

Failed to upload logo.png: This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.

The folders exist and if i change it to:

destination: 'user://images/logo'

it workes, but i the environment://... streams should work too.

i use it for keeping logos inside the environment path (user/env//images/logo), not outside in (user/images/logo)

It seams that the environment://.. streams are not available or not getting evaluated to the time where the image uploads?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions