Download the PHP package lys/php-shard-upload without Composer
On this page you can find all versions of the php package lys/php-shard-upload. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download lys/php-shard-upload
More information about lys/php-shard-upload
Files in lys/php-shard-upload
Download lys/php-shard-upload
More information about lys/php-shard-upload
Files in lys/php-shard-upload
Vendor lys
Package php-shard-upload
Short Description 前端Javascript+Html5+后端PHP分块上传文件,PHP分块上传大文件
License Apache-2.0
Homepage https://github.com/1107012776/php-shard-upload
Package php-shard-upload
Short Description 前端Javascript+Html5+后端PHP分块上传文件,PHP分块上传大文件
License Apache-2.0
Homepage https://github.com/1107012776/php-shard-upload
Please rate this library. Is it a good library?
Informations about the package php-shard-upload
php-shard-upload
前端Javascript+Html5+后端PHP分块上传文件,PHP分块上传大文件,该项目可以正常运行,入口为index.html,需要正确配置fileDir的读写权限
目前有测试过上传1.5G左右的没有问题(未测试更大的文件),理论上更大的文件也是可以的,(更大的)原理是一样的
安装
composer require lys/php-shard-upload
注意
该包必须通过composer2+ 安装 您可以使用composer self-update --2迁移到它。如果遇到问题,您可以随时使用 返回composer self-update --1
环境
必须配置上传允许数据流大于2M 在php.ini里面或者nginx里面配置
1.实现断点续传,已上传过的块,前端直接过滤掉,无需继续传到后端,加速上传效率,减少带宽
2.实现快速上传,即之前上传过,该文件已经存在的,很快就能上传成功,其原理就是文件md5+文件sha1的判断
示例 (具体请查看tests目录)
1. 创建一个 html5 页面
2.创建一个 upload.php 文件
3.创建一个 fileStatus.php 文件
4.创建一个 fileDown.php 文件
Page visitor counter
All versions of php-shard-upload with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6
The package lys/php-shard-upload contains the following files
Loading the files please wait ....