If you want to use a different formatting to name your original or converted file(s),
you can specify the class name of your own FileNamer under the file_namer key
within the media-library.php config file.
The only requirement is that your class extends Spatie\MediaLibrary\Support\FileNamer\FileNamer.
In your class you should implement 3 methods:
originalFileName should return the name you'd like for the original file. Return the name without the extension.
conversionFileName should return the media file name combined with the conversion name
responsiveFileName should return the media file name
Here is the implementation of Spatie\MediaLibrary\Support\FileNamer\DefaultFileNamer
Just like the naming of converted files, you can use another format for naming your files
by using your own FileNamer class. It is only possible to prefix the name, because other parts are needed in processing responsive images.