-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BulkUploader: Adding UploadField Validation Not Working #189
Comments
I have a feeling that this is the same bug as reported in silverstripe/silverstripe-cms#2294 |
Hmm, not sure if it is. I tried adding But when I try and add this same restriction to the So it does look like this issue is specific to |
I've delved into this a bit more, but can't work it out. It does seem like |
I'm trying to add simple file type validation to the BulkUploader, but can't get it to work.
I've tried:
$bulkUpload->setUfSetup('setAllowedFileCategories', 'image/supported');
and also:
$bulkUpload->setUfSetup('setAllowedExtensions', ['jpg', 'jpeg', 'png', 'gif']);
But despite
$bulkUpload->setUfSetup('setFolderName','XXX');
working fine, the above settings don't appear to have any effect.Am I doing something wrong?
The text was updated successfully, but these errors were encountered: