PHP code example of intaro / file-uploader-bundle
1. Go to this page and download the library: Download intaro/file-uploader-bundle 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/ */
intaro / file-uploader-bundle example snippets
public function uploadAction()
{
$files = $this->getRequest()->files->get('file');
$this->get('intaro.video_uploader')->upload($file);
}
php
// app/AppKernel.php
class AppKernel extends SaasKernel
{
public function registerBundles()
{
$bundles = array(
...
new Intaro\FileUploaderBundle\IntaroFileUploaderBundle(),
);
}
}