code/Helpers/GridBuilder.php
public function addBulkUploader($fileRelationName = null, $folderName = null)
    {
        $gridFieldBulkUpload = Injector::inst()->create("GridFieldBulkUpload", $fileRelationName);
        if ($folderName) {
            $gridFieldBulkUpload->setUfSetup("setFolderName", $folderName);
        }
        $this->gridConfig->addComponent($gridFieldBulkUpload);
        return $this;
    }
public function addBulkUploader($fileRelationName = null, $folderName = null)
    {
        $gridFieldBulkUpload = Injector::inst()->create("GridFieldBulkUpload", $fileRelationName);
        if ($folderName) {
            $gridFieldBulkUpload->setUfSetup("setFolderName", $folderName);
        }
        $this->gridConfig->addComponent($gridFieldBulkUpload);
        return $this;
    }
public function addBulkUploader ( $ fileRelationName = null , $ folderName = null ) { $ gridFieldBulkUpload = Injector :: inst ( ) -> create ( "GridFieldBulkUpload" , $ fileRelationName ) ; if ( $ folderName ) { $ gridFieldBulkUpload -> setUfSetup ( "setFolderName" , $ folderName ) ; } $ this -> gridConfig -> addComponent ( $ gridFieldBulkUpload ) ; return $ this ; }
Enables bulk uploaded of files and images
@param string $fileRelationName The relation name in the model to attach uploaded files to
@param string $folderName Folder path to upload files to
@return \GridBuilder
Enables bulk uploaded of files and images