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 worked, but i need the logos inside the enviroment path (user/env/<environment>/images/logo), not outside in (user/ages/logo)
It seams that the environment://.. streams are not availble or not getting evaluated to the time where the image uploads? Or am i doing something wrong?