Silverstripe Version: 4.x
Question: Filenames are not set on Bulkupload
I want to use BulkUpload direct on a has_many File relation without an extra Class like GalleryItem or something. Problem is that Filenames are not being set. The Files get Uploaded but the DataObjects are not generated Correctly.
PS: I don’t want to autopublish them because they should get publishd on date with embargo expiry GitHub - silverstripe-terraformers/silverstripe-embargo-expiry
private static $has_many = [ "Downloads" => File::class ]; private static $owns = [ "Downloads" ]; ... $config = new GridFieldConfig_RelationEditor(); $bulk = new BulkUploader(); $bulk->setUfSetup( "setFolderName", "Pressefotos/".$this->ID); $config->addComponent($bulk); $config->addComponent(new BulkManager()); $config->removeComponentsByType(GridFieldAddExistingAutocompleter::class);