Download the PHP package xakki/file-uploader-symfony without Composer
On this page you can find all versions of the php package xakki/file-uploader-symfony. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xakki/file-uploader-symfony
More information about xakki/file-uploader-symfony
Files in xakki/file-uploader-symfony
Package file-uploader-symfony
Short Description Chunked file uploader bundle for Symfony 7/8 (Upload Protocol v1).
License Apache-2.0
Informations about the package file-uploader-symfony
xakki/file-uploader-symfony
Chunked file uploader bundle for Symfony 7 / 8, speaking
Upload Protocol v1. A thin binding over the
framework-agnostic xakki/file-uploader
(Packagist) core — all upload logic
(chunk assembly, hashing, metadata, trash) lives in the core; this package only
wires Symfony's storage, security, routing and console to it.
A sibling Laravel binding
(xakki/file-uploader-laravel)
speaks the same Upload Protocol v1.
Install
Register the bundle (Symfony Flex does this automatically; otherwise add to
config/bundles.php):
Mount the routes, choosing a URL prefix:
Publish the widget asset:
Configure
All keys are optional; defaults shown.
Storage
Out of the box, files go to a local directory (storage.local_root). To use
S3, GCS, etc., point storage.operator at any
league/flysystem-bundle
storage service and set storage.public_url_base if it serves public URLs.
Security
Set full_access.users / full_access.roles to grant management rights. Roles
are checked through Symfony Security (isGranted). With no SecurityBundle every
request is an anonymous guest; set allow_delete_all_files: true to let guests
manage files.
Widget
Render the upload widget in any Twig template:
It emits the mount point, the JS config (route URLs + flags) and the vendored
UMD bundle from /bundles/fileuploader/file-uploader.umd.js. The same front-end
ships with every binding (built from @xakki/file-uploader).
The bundled widget supports theming and i18n out of the box: the locale
config key flows through to the front-end and the JS widget exposes theme/string
overrides. (max_files is enforced server-side by the core — new uploads beyond
the cap are rejected.)
Server-produced messages are also localized: upload/chunk/trash/cleanup results
and the error.* / validation.* codes are rendered from the shared core catalog
(xakki/file-uploader protocol/i18n/<locale>.json, 8 locales: en ru es pt zh fr de sr)
— identical text across every binding and the JS client. The response envelope now
carries the stable code (and params) alongside the human message. The locale is
resolved per Upload Protocol §5.1: the request locale field (only when in the locales
allow-list) → the locale config default → en.
See the
@xakki/file-uploader JS docs
for the full widget config (themes, custom strings, templates).
Console
HTTP API
| Method & path | Action |
|---|---|
POST {prefix}/chunks |
upload a chunk |
GET {prefix}/files |
list files |
DELETE {prefix}/files/{id} |
delete (soft by default) |
POST {prefix}/files/{id}/restore |
restore from trash |
DELETE {prefix}/trash/cleanup |
purge expired trash |
The wire shape is the shared Upload Protocol v1 envelope, identical to the Laravel binding and the standalone demo.
Test
All versions of file-uploader-symfony with dependencies
xakki/file-uploader Version ^0.3.4
league/flysystem Version ^3
symfony/config Version ^7.0|^8.0
symfony/console Version ^7.0|^8.0
symfony/dependency-injection Version ^7.0|^8.0
symfony/framework-bundle Version ^7.0|^8.0
symfony/http-foundation Version ^7.0|^8.0
symfony/http-kernel Version ^7.0|^8.0
symfony/mime Version ^7.0|^8.0
symfony/routing Version ^7.0|^8.0
symfony/security-core Version ^7.0|^8.0