How do I change name and filename and preview before saving?

SpatieMediaLibraryFileUpload::make('Fajlovi') ->disk('images') ->collection('bicikli') ->enableReordering() ->multiple() So, how do I change "j0d071oexw461.jpg" before upload or change after upload and preview the change?
2 Replies
Dan Harrin
Dan Harrin2y ago
wdym by previewing the change?
Štakor
ŠtakorOP2y ago
I mean previewing the change so the filename changes eg. like on my uploaded image above size, but if I can change the filename before the image appears then I dont't need to preview the change. SpatieMediaLibraryFileUpload::make('Fajlovi') ->mediaName('New name') ->disk('images') ->collection('bicikli') ->enableReordering() ->multiple() I added mediaName so it changes the name, but I also need to change the filename.
Want results from more Discord servers?
Add your server