F
Filament9mo ago
prskv.

Custom preview for FileUpload

I'm doing a preview for FileUpload using ViewField. What's the best way I can get data from the FileUpload field? It can return an array with either a key where string or TemporaryFileUpload
4 Replies
prskv.
prskv.OP9mo ago
Dennis Koch
Dennis Koch9mo ago
So what’s the actual issue? If you want preview for the TemporaryUploadFile you need to differentiate between those 2.
prskv.
prskv.OP9mo ago
Do you mean you need to make a condition on InstanceOf?
Dennis Koch
Dennis Koch9mo ago
Probably

Did you find this page helpful?