JanV
How to access an uploaded file without a resource
The problem was the chained directory; without it, the audio property was accessible with a file name. This way, I could access the uploaded file via the temp directory and move it based on my needs so far. There should be an easier way.
I do not have a perfect solution, but it works for now.
Thanks, Ross, for your alternative solution! I'm going to try it out, too.
15 replies
How to access an uploaded file without a resource
Thanks guys!
Still no success
This is the custom page
This is the form component
As soon as I select a file in from the drop-zone/field, it is automatically uploaded to the server as I can see.
As soon I hit the button, the state and file is empty.
What am I doing wrong?
15 replies
How to access an uploaded file without a resource
Thanks for your reply. What do you mean with "run
getState()
"?
Do you mean call the method like this?
I am new to filament so bear with me.
So the question is, to be more specific, how and where can I access the uploaded file within my custom page?15 replies
Revert ToggleColumn State after failed Validation
This is the column.
I tried
beforeStateUpdated()
but wanted to use rules(), so the record is not updated if the validation fails.
As I understand from the documentation
`
The life cycle hook can manipulate the state before or after the record is saved to the DB. But a re-rendering or state binding isn't possible in the list view. May be I don't see the point, yet.9 replies