承接 mztest/yii2-single-file-upload 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mztest/yii2-single-file-upload

Composer 安装命令:

composer require mztest/yii2-single-file-upload

包简介

Single file upload extension

README 文档

README

Single file upload extension

This package is deprecated

This package is deprecated. All the features were integrated into mztest/yii2-widget-file-upload

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist mztest/yii2-single-file-upload "*"

or add

"mztest/yii2-single-file-upload": "*"

to the require section of your composer.json file.

Usage

  1. Define your web base url aliase '@frontendWeb'

    Yii::setAlias('@frontendWeb', 'http://your.domain.com');
  2. Set upload action at your controller

    public function actions()
        {
            return [
                'upload' => [
                    'class' => 'mztest\singleFileUpload\actions\SingleFileUploadAction',
                    'uploadFolder' => 'your relative upload folder name.',
                ],
            ];
        }
  3. simply use it in your code by :

    <?= \mztest\singleFileUpload\SingelFileUpload::widget(); ?>

    or

    <?= $form->field($model, 'floor_image')->widget(SingleFileUpload::className(), [
        'uploadAction' => ['upload']
    ]) ?>

统计信息

  • 总下载量: 38
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2016-06-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固