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