F
Filament7mo 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.OP7mo ago
Dennis Koch
Dennis Koch7mo ago
So what’s the actual issue? If you want preview for the TemporaryUploadFile you need to differentiate between those 2.
prskv.
prskv.OP7mo ago
Do you mean you need to make a condition on InstanceOf?
Dennis Koch
Dennis Koch7mo ago
Probably
Want results from more Discord servers?
Add your server