Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Upload Bundle Laravel Package

backend2-plus/upload-bundle

View on GitHub
Deep Wiki
Context7

UploadBundle

Symfony bundle for upload functionality with Flysystem support.

Installation

1. Install bundle via Composer

composer require backend2-plus/upload-bundle

2. Migrate existing code

If you have existing code that uses App\Bundles\Upload\MultipleUploadBundleService, you need to change the import in controllers:

Old:

use App\Bundles\Upload\MultipleUploadBundleService;

New:

use Backend2Plus\UploadBundle\Service\App\Bundles\Upload\MultipleUploadBundleService;

3. Remove old files

After migration, you can delete old files:

  • src/Controller/UploadController.php
  • src/Bundles/Upload/ directory
  • config/packages/upload.yaml (old)

Usage

Upload Controller

Bundle provides API endpoint for upload:

POST /api/upload

Services

  • Backend2Plus\UploadBundle\Service\UploadService - main upload service
  • Backend2Plus\UploadBundle\Service\App\Bundles\Upload\MultipleUploadBundleService - service for multiple upload

Flysystem Configuration

Bundle uses OneupFlysystemBundle for filesystem configuration. You need to configure:

# config/packages/oneup_flysystem.yaml
oneup_flysystem:
    adapters:
        public_uploads:
            local:
                directory: '%kernel.project_dir%/public/upload'
        private_uploads:
            local:
                directory: '%kernel.project_dir%/privatePictures'
    filesystems:
        public_uploads_filesystem:
            adapter: public_uploads
        private_uploads_filesystem:
            adapter: private_uploads

For support contact: [email protected]

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums