Uploading file just dissapears

When uploading a file it just dissapears, it does get uploaded to the tmp-storage directory. See code: https://pastebin.com/NAjbi46n
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
12 Replies
toeknee
toeknee16mo ago
Try removing your getUploadedFileNameForStorageUsing
RobinDev
RobinDevOP16mo ago
Doesnt make a differnce, just tried 😦
toeknee
toeknee16mo ago
strange, which version?
RobinDev
RobinDevOP16mo ago
v2.17.51 I now have it that it does show it, it does not dissapear (thats how i had it before), it does go into tmp storage but it does not show in the variable after pressing submit
RobinDev
RobinDevOP16mo ago
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
RobinDev
RobinDevOP16mo ago
RobinDev
RobinDevOP16mo ago
Do you have any idea @toeknee_iom ?
toeknee
toeknee16mo ago
Are you casting to array and is it in your model fillables ?
RobinDev
RobinDevOP16mo ago
it is not linked to a model yet, it is just variables in the component that it should fill
toeknee
toeknee16mo ago
You are dding $this->attachements, but you are using data for the form. So surely you want: dd($this->data); which should show an attahcements on it Going of the code in pastbin you provided.
Matthew
Matthew16mo ago
Out of curiosity, which plugin are you using to add those widgets in the right and the logo on the top left? Of is it just plain filament?
RobinDev
RobinDevOP16mo ago
Thats just plain haha
Want results from more Discord servers?
Add your server