concrete/controllers/dialog/file/import.php
protected function getIncomingFiles()
    {
        $fh = $this->app->make('helper/validation/file');
        $nh = $this->app->make('helper/number');
        $incoming = $this->app->make(Incoming::class);
        $files = $incoming->getIncomingFilesystem()->listContents($incoming->getIncomingPath());
        foreach (array_keys($files) as $index) {
            $files[$index]['allowed'] = $fh->extension($files[$index]['basename']);
            $files[$index]['thumbnail'] = FileTypeList::getType($files[$index]['extension'])->getThumbnail();
            $files[$index]['displaySize'] = $nh->formatSize($files[$index]['size'], 'KB');
        }

        return $files;
    }
protected function getIncomingFiles()
    {
        $fh = $this->app->make('helper/validation/file');
        $nh = $this->app->make('helper/number');
        $incoming = $this->app->make(Incoming::class);
        $files = $incoming->getIncomingFilesystem()->listContents($incoming->getIncomingPath());
        foreach (array_keys($files) as $index) {
            $files[$index]['allowed'] = $fh->extension($files[$index]['basename']);
            $files[$index]['thumbnail'] = FileTypeList::getType($files[$index]['extension'])->getThumbnail();
            $files[$index]['displaySize'] = $nh->formatSize($files[$index]['size'], 'KB');
        }

        return $files;
    }
protected function getIncomingFiles ( ) { $ fh = $ this -> app -> make ( 'helper/validation/file' ) ; $ nh = $ this -> app -> make ( 'helper/number' ) ; $ incoming = $ this -> app -> make ( Incoming :: class ) ; $ files = $ incoming -> getIncomingFilesystem ( ) -> listContents ( $ incoming -> getIncomingPath ( ) ) ; foreach ( array_keys ( $ files ) as $ index ) { $ files [ $ index ] [ 'allowed' ] = $ fh -> extension ( $ files [ $ index ] [ 'basename' ] ) ; $ files [ $ index ] [ 'thumbnail' ] = FileTypeList :: getType ( $ files [ $ index ] [ 'extension' ] ) -> getThumbnail ( ) ; $ files [ $ index ] [ 'displaySize' ] = $ nh -> formatSize ( $ files [ $ index ] [ 'size' ] , 'KB' ) ; } return $ files ; }
Get the list of files available in the "incoming" directory.

@throws \Exception in case of errors

@return string[]
Get the list of files available in the incoming directory .