ASCIITO
ASCIITO
FFilament
Created by ASCIITO on 6/21/2024 in #❓┊help
is there any plans for chunked upload files?
Sorry if my English is meh, what I was looking is for information about if exists any plans to make FileUpload to upload BIG files in chunks. Currently I’m developing a plugin (for personal use) to address this issue but Ik wondering if there’s any plan in the future. The reason is that right now I’m developing a platform where the clients can upload some video assets, and those videos can be like 50GB so for the moment I’m addressing the issue by just uploading directly to Google Drive (Google Drive Picker) while I’m developing this plugin to upload really big files.
12 replies
FFilament
Created by ASCIITO on 6/18/2024 in #❓┊help
`evalúate` question
I’m working on creating a Title and Slug functionality like WrodPress, and I’m using TextInput as the base for both. The problem is that I’m putting both fields in together in a Filament\Forms\Components\Component called TitleSlug, I add the components with
$this->childComponents(fn () => [
// title component
// slug component
]);
$this->childComponents(fn () => [
// title component
// slug component
]);
And in order to pass some configurations like Label I create a function on the TitleSlug and evaluate the results with
protected function evaluateForTitle(mixed $value): mixed
{
return $this->evaluate($value, [
'state' => $this->titleInput->getState(),
]);
}
protected function evaluateForTitle(mixed $value): mixed
{
return $this->evaluate($value, [
'state' => $this->titleInput->getState(),
]);
}
This function throws the error Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization, do my question (finally) is: When I should call the evaluate function?, or what are the restrictions to use evaluate?
2 replies