to use in frontend

        $fields = new FieldList(
            new HiddenField('ObjektPageID', 'ObjektPageID', $urlParams['ID']),
            $galleryUploadField = new GalleryUploadField('Images', '')
        );
        $galleryUploadField->setCanAttachExisting(false);