Describe the bug
Validation for filename extensions for type assets don't seem to work
To Reproduce
- Add a
validate line to an assets field, i.e.
container: main
folder: listings/thumbnails
restrict: true
max_files: 1
type: assets
validate: "ext:jpg,gif"
- Select a valid file, i.e. ending in
.jpg
- Submit the Workshop form
Expected behavior
I expect the file to be accepted and saved
Actual behavior
An error occurs The Thumbnail must be a file of type: jpg, gif and the image is not saved. Removing the validate line is needed for the image to upload - which is of no use.
Environment details (please complete the following information):
- Workshop Version 1.1.0
- Statamic Version 2.11.12
Describe the bug
Validation for filename extensions for type
assetsdon't seem to workTo Reproduce
validateline to an assets field, i.e..jpgExpected behavior
I expect the file to be accepted and saved
Actual behavior
An error occurs
The Thumbnail must be a file of type: jpg, gifand the image is not saved. Removing thevalidateline is needed for the image to upload - which is of no use.Environment details (please complete the following information):