private function preUploadFile($exception)
    {
        $datas = [];
        foreach($this->fileOptions as $options) {
            $result = $this->uploadFile($options);
            if ($result !== false) {
                $datas[] = $result;
            }
        }

        if ( ! empty($datas) && ! $this->fillModel($datas)) {
            throw new $exception($this->request->all());
        }
    }
private function preUploadFile($exception)
    {
        $datas = [];
        foreach($this->fileOptions as $options) {
            $result = $this->uploadFile($options);
            if ($result !== false) {
                $datas[] = $result;
            }
        }

        if ( ! empty($datas) && ! $this->fillModel($datas)) {
            throw new $exception($this->request->all());
        }
    }
private function preUploadFile ( $ exception ) { $ datas = [ ] ; foreach ( $ this -> fileOptions as $ options ) { $ result = $ this -> uploadFile ( $ options ) ; if ( $ result !== false ) { $ datas [ ] = $ result ; } } if ( ! empty ( $ datas ) && ! $ this -> fillModel ( $ datas ) ) { throw new $ exception ( $ this -> request -> all ( ) ) ; } }
pre upload file control function

@param $exception
pre upload file control function