When using an Asset field in a project with multiple local containers configured, after submitting the error UndefinedContainerException: An asset container has not been configured is thrown. This happens even though the container option has been set.
Statamic seems to be unable to retrieve the field options inside Statamic's AssetsUploader class. In projects with only one container, the error does not occur because it will automatically pick that container without looking at the field options.
When using an Asset field in a project with multiple local containers configured, after submitting the error
UndefinedContainerException: An asset container has not been configured
is thrown. This happens even though thecontainer
option has been set.Statamic seems to be unable to retrieve the field options inside Statamic's
AssetsUploader
class. In projects with only one container, the error does not occur because it will automatically pick that container without looking at the field options.