定制 intaro/file-uploader-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

intaro/file-uploader-bundle

最新稳定版本:v2.1.1

Composer 安装命令:

composer require intaro/file-uploader-bundle

包简介

Symfony2 bundle which is intended to simplify file uploading

README 文档

README

About

This is Symfony2 bundle. The purpose of this bundle is to simplify the file uploading process. It moves files to storage after they were uploaded into temporary folder.

There are few supported storage types:

  • local filesystem
  • amazon s3

Installation

Require the bundle in your composer.json file:

  {
      "require": {
          "intaro/file-uploader-bundle": "dev-master",
      }
  }

Register in AppKernel:

  // app/AppKernel.php
  
  class AppKernel extends SaasKernel
  {
      public function registerBundles()
      {
          $bundles = array(
              ...
              new Intaro\FileUploaderBundle\IntaroFileUploaderBundle(),
          );
      }
  }

Install with composer:

$ composer update intaro/file-uploader-bundle

Usage

In config:

  # app/config/config.yml
  
  intaro_file_uploader:
    uploaders:
        local:
            image:
                path: http://www.app.local/images/
                create: true
                allowed_types: ['image/jpeg', 'image/png', 'image/gif']
            document:
                directory: path/to/another/attach/dir
                create: true
                allowed_types: ['application/pdf', 'application/rtf', 'application/vnd.ms-office']
        aws_s3:
            video:
                service_id: aws.client_service_name
                path: https://s3-us-west-2.amazonaws.com/bucket-name/iamges/
                bucket_name: some_bucket
                options:
                    create: true
                    acl: public-read

In code:

public function uploadAction()
{
    $files = $this->getRequest()->files->get('file');
    
    $this->get('intaro.video_uploader')->upload($file);
}
  

统计信息

  • 总下载量: 632.57k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 14
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固