colymba/GridFieldBulkEditingTools (BulkUploader & BulkManager)

module
silverstripe-4
Tags: #<Tag:0x00007f10ca58e670> #<Tag:0x00007f10ca58e260>

#1

(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.

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.

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.

GitHub Issue #189