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
toeknee2y ago
Try removing your getUploadedFileNameForStorageUsing
RobinDev
RobinDevOP2y ago
Doesnt make a differnce, just tried 😦
toeknee
toeknee2y ago
strange, which version?
RobinDev
RobinDevOP2y 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
RobinDevOP2y 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
RobinDevOP2y ago
RobinDev
RobinDevOP2y ago
Do you have any idea @toeknee_iom ?
toeknee
toeknee2y ago
Are you casting to array and is it in your model fillables ?
RobinDev
RobinDevOP2y ago
it is not linked to a model yet, it is just variables in the component that it should fill
toeknee
toeknee2y 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
Matthew2y 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
RobinDevOP2y ago
Thats just plain haha

Did you find this page helpful?