PHPackages                             jinyicheng/thinkphp\_upload - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. jinyicheng/thinkphp\_upload

ActiveLibrary[File &amp; Storage](/categories/file-storage)

jinyicheng/thinkphp\_upload
===========================

ThinkPHP5.0.\*版上传整合模块

v2.0.1(6y ago)1137MITPHPPHP &gt;=7.1.0CI failing

Since Nov 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/jinyicheng/thinkphp_upload)[ Packagist](https://packagist.org/packages/jinyicheng/thinkphp_upload)[ RSS](/packages/jinyicheng-thinkphp-upload/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

使用方法
====

[](#使用方法)

install文件夹下的文件为使用时所需的文件，请按以下说明部署：

1. 通过工具或命令行运行install/sql文件夹中所需的sql文件（推荐Navicat）

    1.1. 正常情况下所有上传文件统一管理只需运行file.sql（推荐）

    1.2. 需要上传文件分开管理请运行除file.sql以外的其它sql文件，将会自动生成对应的表名（表名即文件名）您也可以自行修改所需的表名，但字段名请勿变更，另外字符集（默认：utf8mb4），排序规则（默认：utf8mb4\_general\_ci）请按需自行调整后运行，但需要特别注意的是：如后期需要文件合并管理或需要使用作者发布的其他扩展组件请不要修改默认字段名称，修改后将会导致其它扩展组件异常。
2. 将install/conf/upload.php放在配置扩展文件夹中

    2.1. 正常情况下该文件的存放路径是：application/extra/upload.php

    2.2. 如需区分模块，不同模块走不同配置，请放置在对应模块下，如放置在admin模块下：application/admin/extra/upload.php
3. 修改upload.php中的参数配置（具体参数说明请见注释），需要注意的是，如果采用1.1的方式，文件统一管理时，需要将db\_table\_name统一设置成您统一存储的表名，示例中的文件统一管理表即file表，数据表连接基于thinkphp5.0.\*官方设定
4. 目前支持的上传方式有本地和阿里云OSS2种，如使用阿里云OSS需要将install/conf/oss.php放在配置扩展文件夹中，oss.php中的参数配置（具体参数说明请见注释）

    4.1. 正常情况下该文件的存放路径是：application/extra/oss.php

    4.2. 如需区分模块，不同模块走不同配置，请放置在对应模块下，如放置在admin模块下：application/admin/extra/oss.php

表字段说明
=====

[](#表字段说明)

字段说明id文件IDoriginal\_name原始文件名file\_name存储文件名ext文件扩展名save\_name基于文件类型归属文件夹的相对存储路径size文件大小（字节）height高width宽mime文件MIMEtypephp识别类型path相对于域名访问而言的存储路径md5文件md5值thumb\_file\_name缩略图存储文件名thumb\_ext缩略图文件扩展名thumb\_save\_name缩略图基于文件类型归属文件夹的相对存储路径thumb\_size缩略图文件大小（字节）thumb\_height缩略图高thumb\_width缩略图宽thumb\_mime缩略图文件MIMEthumb\_type缩略图php识别类型thumb\_path缩略图相对于域名访问而言的存储路径thumb\_md5缩略图文件md5值related\_object关联对象related\_id关联IDcreate\_time上传时间status状态attachment附件标记key管理秘钥total\_size关联文件总大小（包含缩略图文件）name不含扩展名的原始文件名

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~59 days

Total

3

Last Release

2242d ago

Major Versions

v1.0 → v2.02020-03-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a3fcb13db921d74b411a78741962a2db19101110bdc6396db2b358d4742b263?d=identicon)[jinyicheng](/maintainers/jinyicheng)

---

Top Contributors

[![urmljyc](https://avatars.githubusercontent.com/u/2384693?v=4)](https://github.com/urmljyc "urmljyc (26 commits)")[![jinyicheng](https://avatars.githubusercontent.com/u/6350799?v=4)](https://github.com/jinyicheng "jinyicheng (2 commits)")

---

Tags

uploadthinkphp5

### Embed Badge

![Health badge](/badges/jinyicheng-thinkphp-upload/health.svg)

```
[![Health](https://phpackages.com/badges/jinyicheng-thinkphp-upload/health.svg)](https://phpackages.com/packages/jinyicheng-thinkphp-upload)
```

###  Alternatives

[vich/uploader-bundle

Ease file uploads attached to entities

1.9k25.9M116](/packages/vich-uploader-bundle)[yangyifan/upload

上传 SDK for Laravel

12422.6k3](/packages/yangyifan-upload)[marrouchi/upload-crop-image-bundle

Basic server side cropping behavior for Symfony2

121.1k](/packages/marrouchi-upload-crop-image-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
