知启蒙大文件上传组件,该组件实现大文件分片上传,包含服务端接收碎片上传和管理功能,以及前端UI的进度条、上传速度等界面。同时还支持按文件内容MD5码、相同文件名称比对秒传等功能,是业务系统应用不可缺少的组件之一。

森中灵 最后提交于28天前 8.0.5版本,删除encoding和cache字段,大部分没用上,整理访问类
知启蒙大文件上传数据库字典.dbo3KB
<?xml version="1.0" encoding="UTF-8"?>
<zhiqim-dbo>

<config version="1.2.0" dbType="mysql" folder="../src" initDataWidth="1000">
<![CDATA[
/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙,邂逅框架梦,本文采用木兰宽松许可证第2版]
 * 
 * https://zhiqim.org/project/zhiqim_components/zhiqim_upload_large.htm
 *
 * Zhiqim UploadLarge is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
]]>
</config>

<package name="org.zhiqim.uploadlarge.dbo" type="true" desc="文件上传表">

    <table name="UPLL_FILE" desc="大文件上传文件表" key="FILE_ID" type="InnoDB">
        <index name="IX_UPLL_FILE_MD5" desc="按MD5查询是否存在" unique="false" column="FILE_MD5"/>

        <field column="FILE_ID" type="string" length="32,char" notNull="true" notField="null" desc="文件编号,一次上传一条记录"/>
        <field column="FILE_MD5" type="string" length="48,char" notNull="true" notField="null" desc="文件MD5,消息摘要唯一性,对应URL的文件名,两条记录MD5的文件只保留一份URL和文件"/>
        <field column="FILE_NAME" type="string" length="512" notNull="true" notField="null" desc="文件名称,由用户指定的文件名,对应下载的文件名"/>
        <field column="FILE_EXT" type="string" length="10" notNull="true" notField="null" desc="文件扩展名"/>
        <field column="FILE_LENGTH" type="long" length="" notNull="true" notField="null" desc="文件长度"/>
        <field column="FILE_RELATIVE_PATH" type="string" length="200" notNull="true" notField="false" desc="文件路径,保存到硬盘相对于根目录的路径,路径以/为开头"/>
        <field column="FILE_URL" type="string" length="200" notNull="true" notField="null" desc="文件URL,通过文件目录和指定的域名前缀生成"/>
        <field column="FILE_TIME" type="datetime" length="" notNull="true" notField="null" desc="文件上传成功时间"/>
        <field column="CONTENT_TYPE" type="string" length="100" notNull="false" notField="null" desc="内容类型消息头"/>
    </table>

    <table name="UPLL_CHUNK" desc="大文件上传分块表" key="FILE_MD5,CHUNK_SIZE" type="InnoDB">
        <field column="FILE_MD5" type="string" length="48,char" notNull="true" notField="null" desc="文件MD5,文件消息摘要,检查文件唯一性"/>
        <field column="CHUNK_SIZE" type="int" length="11" notNull="true" notField="null" desc="文件分块大小,当文件MD5相同且分块相同时,认为是同一文件"/>
        <field column="CHUNK_NUM" type="int" length="11" notNull="true" notField="null" desc="文件总分块数"/>
        <field column="CHUNK_NO" type="int" length="11" notNull="true" notField="null" desc="文件已上传分块数"/>
        <field column="CHUNK_TIME" type="datetime" length="" notNull="true" notField="null" desc="文件分块第一次上传时间"/>
        <field column="FILE_NAME" type="string" length="512" notNull="true" notField="null" desc="文件名称,由用户指定的文件名,对应下载的文件名"/>
        <field column="FILE_EXT" type="string" length="10" notNull="true" notField="null" desc="文件扩展名"/>
        <field column="FILE_TEMP_PATH" type="string" length="200" notNull="true" notField="null" desc="文件临时路径,保存到硬盘的绝对路径,格式为"/>
    </table>

</package>

</zhiqim-dbo>