FileUpload file saved with encrypted name, preview with original name

Maybe im missing something in the docs, but so far I havent found a way to upload a file, and save it with a hashed name, but when you preview its with the original name.
                FileUpload::make("attachment")
                    ->disk("public")
                    ->visibility("public")
                    // ->collection('attachments')
                    ->multiple()
                    ->enableReordering()
                    // ->saveUploadedFiles()
                    // ->preserveFilenames()
                     ->getUploadedFileNameForStorageUsing(function (TemporaryUploadedFile $file): string {
                         return (string) str($file->getClientOriginalName())->prepend('custom-prefix-');
                     }),

Am I missing something?
Was this page helpful?