iisns/yii2-webuploader

WebUploader是一个简单的以Html5为主,Flash为辅的现代文件上传组件。在现代的浏览器里面能充分发挥html5的优势,同时又不摒弃主流IE浏览器,延用原来的Flash运行时。两套运行时,同样的调用方式,可供用户任意选用。WebUploader采用大文件分片并发上传,极大的提高了文件上传效率。

Installs: 237

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 5

Open Issues: 0

Language:JavaScript

Type:yii2-extension

v1.0.0 2016-02-13 11:19 UTC

This package is not auto-updated.

Last update: 2024-09-05 15:40:16 UTC


README

WebUploader是一个简单的以Html5为主,Flash为辅的现代文件上传组件。在现代的浏览器里面能充分发挥html5的优势,同时又不摒弃主流IE浏览器,延用原来的Flash运行时。两套运行时,同样的调用方式,可供用户任意选用。WebUploader采用大文件分片并发上传,极大的提高了文件上传效率。

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist iisns/yii2-webuploader "*"

or add

"iisns/yii2-webuploader": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

#图片裁剪上传

为了能够预览它,需要在你想要预览的地方放下如下代码:

<div class="fileupload fileupload-new">
<div class="img-preview"></div>
</div>

在你想要出现“选择文件”的地方,放下如下代码:

<?= \iisns\webuploader\Cropper::widget() ?>

#多图上传

<?= \iisns\webuploader\MultiImage::widget() ?>

更多信息

http://fex.baidu.com/webuploader/