Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple files not attaching to field #60

Open
nickjacobs opened this issue Jun 9, 2021 · 1 comment
Open

Multiple files not attaching to field #60

nickjacobs opened this issue Jun 9, 2021 · 1 comment

Comments

@nickjacobs
Copy link

nickjacobs commented Jun 9, 2021

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 nickjacobs changed the title Multiple files not attaching Multiple files not attaching to field Jun 9, 2021
@bhofstaetter
Copy link

Should be related to silverstripe/silverstripe-elemental#815

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants