A simple Laravel 4 implementation of Plupload. Makes uploading multiple files easy.
The package supports Twig and Blade templating engines.
- Install the package using Composer.
- Add
'Fojuth\Plupload\PluploadServiceProvider'
to the provider section inapp/config/app.php
. - (Twig only) Add
'Fojuth\Plupload\TwigExtension'
to Twig extensions inapp/config/packages/rcrowe/twigbridge/config.php
. - Publish the package's assets using this command:
php artisan asset:publish fojuth/plupload
. - You may wish to publish the config files, to override them:
php artisan config:publish fojuth/plupload
.
- Basic upload interface:
{{ plupload() }}
You can set multiple uploaders, if needed.
- Use a custom view, name the "browse" button (e.g. for JS) and specify the prefix for all the uploader's DOM elements:
{{ plupload($view_path, 'mah-button', 'uploader-1') }}
- Basic upload interface:
@plupload()
You can set multiple uploaders, if needed.
- Use a custom view, name the "browse" button (e.g. for JS) and specify the prefix for all the uploader's DOM elements:
@plupload($view_path, 'mah-button', 'uploader-1')
The package is provided as is. If it breaks after some update - it breaks :)
If you have any suggestions, questions feel free to contact me.