Skip to content

Multiple files not attaching to field #60

@nickjacobs

Description

@nickjacobs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions