You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Util saves the adapter with column upload_method as the shortened FQCN in the database, but registration of adapters is done using a custom string.
As such when instantiation occurs, Manager cannot instantiate the given adapter because it doesn't match:
publicfunctioninstantiate(string$adapter): UploadAdapter
{
$configured = $this->adapters()
// Drops adapters that cannot be instantiated due to missing packages.
->filter(function ($available) {
return$available;
})
->get($adapter);
if (!$configured) {
thrownewValidationException(['upload' => "No adapter configured for $adapter"]);
}
$method = Str::camel($adapter);
$driver = $this->events->until(newInstantiate($adapter, $this->util));
if (!$driver && !method_exists($this, $method)) {
thrownewValidationException(['upload' => "Cannot instantiate adapter $adapter"]);
}
return$driver ?? $this->{$method}($this->util);
}
with the example:
BlomstraObjectStorage being saved as upload_methodblomstraobjectstorage whereas the adapter is in fact registered with the Manager as blomstra.
flarum.ERROR: Flarum\Foundation\ValidationException: No adapter configured for blomstraobjectstorage in /var/www/vendor/fof/upload/src/Adapters/Manager.php:70
The text was updated successfully, but these errors were encountered:
The Util saves the adapter with column upload_method as the shortened FQCN in the database, but registration of adapters is done using a custom string.
As such when instantiation occurs, Manager cannot instantiate the given adapter because it doesn't match:
and
with the example:
BlomstraObjectStorage
being saved asupload_method
blomstraobjectstorage
whereas the adapter is in fact registered with the Manager asblomstra
.The text was updated successfully, but these errors were encountered: