PHP code example of vria / enhanced-file

1. Go to this page and download the library: Download vria/enhanced-file library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

vria / enhanced-file example snippets


// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new VRia\Bundle\EnhancedFileBundle\VRiaEnhancedFileBundle(),
    );
}

$form = $this->createFormBuilder()
    ->add('file', EnhancedFileType::class, $options)
    ...

$form = $this->createFormBuilder()
    ->add('file', 'enhanced_file', $options)
    ...

$form = $this->createFormBuilder()
    ->add('file', EnhancedFileType::class, array(
        'label' => 'Curriculum vitae',
        'directory_path' => $this->get('kernel')->getRootDir() . '/../web/upload/',
        'public_directory_path' => '/upload/',
        '