I want to upload bulk images for gallery in 'gallery' folder instead of default 'bulkUpload'. I am using 'colymba / gridfield-bulk-editing-tools 2.1.1'
here is my code
public function getCMSFields() {
$fields = parent::getCMSFields();
$gridFieldConfig = GridFieldConfig_RecordEditor::create();
$gridFieldConfig->addComponent(new GridFieldBulkUpload());
$gridFieldConfig->addComponent(new GridFieldSortableRows('SortOrder'));
$gridfield = new GridField("GalleryImages", "Gallery Images", $this->GalleryImages()->sort("SortOrder"), $gridFieldConfig);
$fields->removeByName("Content");
$fields->addFieldToTab('Root.Main', $gridfield);
return $fields;
}