PHP code example of parpe / yii2-widget-fineuploader
1. Go to this page and download the library: Download parpe/yii2-widget-fineuploader 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/ */
parpe / yii2-widget-fineuploader example snippets
<?= \parpe\fineuploader\Fineuploader::widget([
// by default it uses the jQuery wrapper for the library, if you want the native one, use this:
'jQuery' => false,
'clientOptions' => [
'request' => [
'endpoint' => Yii::$app->urlManager->createUrl(['/your-handler']),
'params' => [Yii::$app->request->csrfParam => Yii::$app->request->csrfToken]
],
'validation' => [
'allowedExtensions' => ['jpeg', 'jpg', 'png', 'bmp', 'gif'],
],
'classes' => [
'success' => 'alert alert-success hidden',
'fail' => 'alert alert-error'
],
],
'clientEvents' => [
'autoRetry' => '',
'cancel' => '',
'complete' => '',
...
]
])
php composer.phar
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.