(Started a new thread for discussion on this module, as one did not already exist.)
BulkUploader Validation Issue
I’m struggling to get UploadField validation working with the latest version of this module on SilverStripe 4.
$bulkUpload->setUfSetup('setAllowedExtensions', ['jpg', 'jpeg', 'png', 'gif']);
$bulkUpload->setUfSetup('setFolderName','XXX'); working fine, the above settings don’t appear to have any effect.
I don’t believe this to be an
UploadField issue, as I tried adding
$uploadField->setAllowedExtensions(array('jpg', 'jpeg', 'png', 'gif'));
to a basic
UploadField , and when I tried to upload a PDF, it correctly reported “Extension ‘pdf’ is not allowed” .
So either this is a
BulkUploader bug or I’m doing something wrong. Any advice appreciated.