Download the PHP package groovili/rest-uploader-bundle without Composer
On this page you can find all versions of the php package groovili/rest-uploader-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download groovili/rest-uploader-bundle
More information about groovili/rest-uploader-bundle
Files in groovili/rest-uploader-bundle
Package rest-uploader-bundle
Short Description A Symfony bundle to handle file upload and management for REST API
License MIT
Homepage https://github.com/groovili/RestUploaderBundle
Informations about the package rest-uploader-bundle
RestUploaderBundle
A Symfony bundle for file upload and management for REST API.
Provides File
entity, rest_uploader.manager
,rest_uploader.validator
services, RestFileType
and list of events to subscribe:
rest_uploader.file.preUpload
rest_uploader.file.postUpload
rest_uploader.file.preDownload
rest_uploader.file.preDelete
rest_uploader.file.preGetPath
Examples can be found in examples section below.
Installation
Require the groovili/rest-uploader-bundle
package in your composer.json and update your dependencies.
composer require groovili/rest-uploader-bundle
Add the RestUploaderBundle to your application's kernel:
Please notice that csrf_protection
should be false
to use RestFileType.
Configuration
The public_dir
and private_dir
are path strings from app folder.
If not exist, would be added automatically. This parameters should be only strings.
allowed_extensions
is array of strings with allowed file extensions.
file_max_size
is integer number in MB, which would be maximum limit.
Configuration which provided below is default for this bundle:
Examples
RestFileType for file upload
RestFileType submit of existing entity
RestFileType delete of existing entity
Upload and validate file via service
Add bundle routing to your routing.yml
All versions of rest-uploader-bundle with dependencies
symfony/framework-bundle Version ^3.1
doctrine/doctrine-bundle Version ^1.6
doctrine/orm Version ^2.5
symfony/console Version ^2.8|^3.0