sortablefile icon indicating copy to clipboard operation
sortablefile copied to clipboard

Multiple files not attaching to field

Open nickjacobs opened this issue 4 years ago • 1 comments

I have added a SortableUploadField (on a silverstripe-elemental block) and it works fine when uploading images one by one - but when I try to drop multiple images in (or even select multiple using the 'upload new') the images load into the correct assets folder in the background, but don't attach to the dataobject, and don't display as loaded in the field...

Pretty standard setup:

private static $many_many = [
        'Images' => Image::class
    ];

$fields->addFieldToTab('Root.Main', SortableUploadField::create(
                'Images', $this->fieldLabel('Images'))
                ->setFolderName('ImageBlocks/'.$url)               
        );

sortable

nickjacobs avatar Jun 09 '21 05:06 nickjacobs

Should be related to https://github.com/silverstripe/silverstripe-elemental/issues/815

bhofstaetter avatar Sep 11 '22 08:09 bhofstaetter