file upload validation - file name must start with value
Is it possible to do something like this on a file upload component? this doesn't work, but it's the idea I'm going for:
1 Reply
Do you need a validation? To me, at least, it would make more sense to customize the save and append the prefix if it doesn’t exist.
But I would expect your code to work, assuming you are preserving file names on the upload. They aren’t preserved by default since laravel defaults to a unique ‘uuid’ for the file name.