1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291 |
- <!DOCTYPE HTML>
- <html lang="zh-hans" >
- <head>
- <meta charset="UTF-8">
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
- <title>上传大小控制 · 梦想家内容管理系统(Dreamer CMS)</title>
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <meta name="description" content="">
- <meta name="generator" content="GitBook 3.2.3">
- <meta name="author" content="王俊南">
-
-
-
- <link rel="stylesheet" href="../gitbook/style.css">
-
-
-
- <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
-
-
-
- <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
-
-
-
- <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
-
-
-
- <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
-
-
-
-
-
-
-
-
-
-
-
- <meta name="HandheldFriendly" content="true"/>
- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
- <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
-
- <link rel="next" href="ResourceNotFound.html" />
-
-
- <link rel="prev" href="MutipleLanguage.html" />
-
-
- <link rel="shortcut icon" href="./source/images/favicon.ico" type="image/x-icon">
-
-
-
-
- <link rel="apple-touch-icon-precomposed" sizes="152x152" href="./source/images/favicon.png">
-
-
-
-
-
-
-
- </head>
- <body>
-
- <div class="book">
- <div class="book-summary">
-
-
- <div id="book-search-input" role="search">
- <input type="text" placeholder="输入并搜索" />
- </div>
-
- <nav role="navigation">
-
- <ul class="summary">
-
-
-
-
- <li>
- <a href="http://www.iteachyou.cc" target="_blank" class="custom-link">I Teach You,我教你!</a>
- </li>
-
-
- <li>
- <a href="https://gitee.com/iteachyou/dreamer_cms" target="_blank" class="custom-link">Dreamer CMS(Gitee)</a>
- </li>
-
-
- <li>
- <a href="https://github.com/iteachyou-wjn/dreamer_cms" target="_blank" class="custom-link">Dreamer CMS(Github)</a>
- </li>
-
-
-
- <li class="divider"></li>
-
-
-
-
-
- <li class="chapter " data-level="1.1" data-path="../">
-
- <a href="../">
-
-
- 封面
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="1.2" data-path="../COPYRIGHT.html">
-
- <a href="../COPYRIGHT.html">
-
-
- 版权
-
- </a>
-
-
- </li>
-
-
-
- <li class="divider"></li>
-
-
-
- <li class="chapter " data-level="2.1" >
-
- <span>
-
-
- 前言
-
- </span>
-
-
- <ul class="articles">
-
-
- <li class="chapter " data-level="2.1.1" data-path="../preface/">
-
- <a href="../preface/">
-
-
- 简介
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="2.1.2" data-path="../preface/Topic.html">
-
- <a href="../preface/Topic.html">
-
-
- 主题
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="2.1.3" data-path="../preface/Publish.html">
-
- <a href="../preface/Publish.html">
-
-
- 发行方法
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="2.1.4" data-path="../preface/Online.html">
-
- <a href="../preface/Online.html">
-
-
- 在线手册
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="2.1.5" data-path="../preface/Last.html">
-
- <a href="../preface/Last.html">
-
-
- 最后
-
- </a>
-
-
- </li>
-
- </ul>
-
- </li>
-
-
-
- <li class="divider"></li>
-
-
-
- <li class="chapter " data-level="3.1" data-path="../chapter01/">
-
- <a href="../chapter01/">
-
-
- 第一章 模板设计师要求
-
- </a>
-
-
- <ul class="articles">
-
-
- <li class="chapter " data-level="3.1.1" data-path="../chapter01/Designer.html">
-
- <a href="../chapter01/Designer.html">
-
-
- 设计师
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="3.1.2" data-path="../chapter01/Developer.html">
-
- <a href="../chapter01/Developer.html">
-
-
- 开发者
-
- </a>
-
-
- </li>
-
- </ul>
-
- </li>
-
-
-
- <li class="divider"></li>
-
-
-
- <li class="chapter " data-level="4.1" data-path="../chapter02/">
-
- <a href="../chapter02/">
-
-
- 第二章 模板制作流程
-
- </a>
-
-
- </li>
-
-
-
- <li class="divider"></li>
-
-
-
- <li class="chapter " data-level="5.1" >
-
- <span>
-
-
- 第三章 模板文件及目录结构
-
- </span>
-
-
- <ul class="articles">
-
-
- <li class="chapter " data-level="5.1.1" data-path="../chapter03/">
-
- <a href="../chapter03/">
-
-
- 模版目录
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="5.1.2" data-path="../chapter03/Description.html">
-
- <a href="../chapter03/Description.html">
-
-
- 模板文件与功能说明
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="5.1.3" data-path="../chapter03/DesignAndUse.html">
-
- <a href="../chapter03/DesignAndUse.html">
-
-
- 概念,设计和使用模板
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="5.1.4" data-path="../chapter03/NamingRules.html">
-
- <a href="../chapter03/NamingRules.html">
-
-
- 命名规则
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="5.1.5" data-path="../chapter03/Other.html">
-
- <a href="../chapter03/Other.html">
-
-
- 其它模板说明
-
- </a>
-
-
- </li>
-
- </ul>
-
- </li>
-
-
-
- <li class="divider"></li>
-
-
-
- <li class="chapter " data-level="6.1" data-path="../chapter04/">
-
- <a href="../chapter04/">
-
-
- 第四章 模板引擎介绍
-
- </a>
-
-
- <ul class="articles">
-
-
- <li class="chapter " data-level="6.1.1" data-path="../chapter04/CoreDoc.html">
-
- <a href="../chapter04/CoreDoc.html">
-
-
- 核心文件
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="6.1.2" data-path="../chapter04/Grammar.html">
-
- <a href="../chapter04/Grammar.html">
-
-
- 模板语法
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="6.1.3" data-path="../chapter04/LabelCategory.html">
-
- <a href="../chapter04/LabelCategory.html">
-
-
- 标签分类
-
- </a>
-
-
- </li>
-
- </ul>
-
- </li>
-
-
-
- <li class="divider"></li>
-
-
-
- <li class="chapter " data-level="7.1" >
-
- <span>
-
-
- 第五章 标签参考
-
- </span>
-
-
- <ul class="articles">
-
-
- <li class="chapter " data-level="7.1.1" >
-
- <span>
-
-
- ▶全局标签
-
- </span>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.2" data-path="../chapter05/GlobalLabel.html">
-
- <a href="../chapter05/GlobalLabel.html">
-
-
- Global全局配置标签
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.3" data-path="../chapter05/VariableLabel.html">
-
- <a href="../chapter05/VariableLabel.html">
-
-
- Variable全局变量标签
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.4" data-path="../chapter05/TemplateLabel.html">
-
- <a href="../chapter05/TemplateLabel.html">
-
-
- Template模版路径标签
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.5" data-path="../chapter05/IncludeLabel.html">
-
- <a href="../chapter05/IncludeLabel.html">
-
-
- Include引入文件标签
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.6" data-path="../chapter05/TypeLabel.html">
-
- <a href="../chapter05/TypeLabel.html">
-
-
- Type栏目调用标签
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.7" data-path="../chapter05/ChannelLabel.html">
-
- <a href="../chapter05/ChannelLabel.html">
-
-
- Channel频道列表标签
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.8" data-path="../chapter05/ListLabel.html">
-
- <a href="../chapter05/ListLabel.html">
-
-
- List文章列表标签
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.9" data-path="../chapter05/CategoryArtListLabel.html">
-
- <a href="../chapter05/CategoryArtListLabel.html">
-
-
- CategoryArtListLabel栏目内容列表标签
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.10" data-path="../chapter05/TagLabel.html">
-
- <a href="../chapter05/TagLabel.html">
-
-
- TagLabel标签列表标签
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.11" data-path="../chapter05/TreeLabel.html">
-
- <a href="../chapter05/TreeLabel.html">
-
-
- TreeLabel栏目树标签
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.12" data-path="../chapter05/AttachmentLabel.html">
-
- <a href="../chapter05/AttachmentLabel.html">
-
-
- AttachmentLabel附件标签
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.13" data-path="../chapter05/SqlLabel.html">
-
- <a href="../chapter05/SqlLabel.html">
-
-
- SqlLabel SQL标签
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.14" data-path="../chapter05/IfLabel.html">
-
- <a href="../chapter05/IfLabel.html">
-
-
- IfLabel判断标签
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.15" >
-
- <span>
-
-
- ▶分页标签
-
- </span>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.16" data-path="../chapter05/CategoryLabel.html">
-
- <a href="../chapter05/CategoryLabel.html">
-
-
- Category分页栏目标签
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.17" data-path="../chapter05/TopCategoryLabel.html">
-
- <a href="../chapter05/TopCategoryLabel.html">
-
-
- TopCategory分页顶级栏目标签
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.18" data-path="../chapter05/LocationLabel.html">
-
- <a href="../chapter05/LocationLabel.html">
-
-
- Location当前位置标签
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.19" >
-
- <span>
-
-
- ▶列表标签
-
- </span>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.20" data-path="../chapter05/PageListLabel.html">
-
- <a href="../chapter05/PageListLabel.html">
-
-
- PageList文章分页标签
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.21" data-path="../chapter05/PaginationLabel.html">
-
- <a href="../chapter05/PaginationLabel.html">
-
-
- Pagination显示分页标签
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.22" >
-
- <span>
-
-
- ▶内容标签
-
- </span>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.23" data-path="../chapter05/ArticleLabel.html">
-
- <a href="../chapter05/ArticleLabel.html">
-
-
- Article文章页标签
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.1.24" data-path="../chapter05/PrevNextLabel.html">
-
- <a href="../chapter05/PrevNextLabel.html">
-
-
- PrevNext上一篇、下一篇标签
-
- </a>
-
-
- </li>
-
- </ul>
-
- </li>
-
- <li class="chapter " data-level="7.2" data-path="../chapter06/DataBase.html">
-
- <a href="../chapter06/DataBase.html">
-
-
- 第六章 数据库
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.3" >
-
- <span>
-
-
- 第七章 模板扩展
-
- </span>
-
-
- <ul class="articles">
-
-
- <li class="chapter " data-level="7.3.1" data-path="../chapter07/Message.html">
-
- <a href="../chapter07/Message.html">
-
-
- 留言投稿
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.3.2" data-path="../chapter07/Search.html">
-
- <a href="../chapter07/Search.html">
-
-
- 网站搜索
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.3.3" data-path="../chapter07/DefineLabel.html">
-
- <a href="../chapter07/DefineLabel.html">
-
-
- 定义标签
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.3.4" data-path="../chapter07/Regexp.html">
-
- <a href="../chapter07/Regexp.html">
-
-
- 正则工具类
-
- </a>
-
-
- </li>
-
- </ul>
-
- </li>
-
- <li class="chapter " data-level="7.4" >
-
- <span>
-
-
- 第八章 部署上线
-
- </span>
-
-
- <ul class="articles">
-
-
- <li class="chapter " data-level="7.4.1" data-path="../chapter08/Environment.html">
-
- <a href="../chapter08/Environment.html">
-
-
- 环境准备
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.4.2" data-path="../chapter08/Packaging.html">
-
- <a href="../chapter08/Packaging.html">
-
-
- 应用打包
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.4.3" data-path="../chapter08/Online.html">
-
- <a href="../chapter08/Online.html">
-
-
- 项目上线
-
- </a>
-
-
- </li>
-
- </ul>
-
- </li>
-
- <li class="chapter " data-level="7.5" >
-
- <span>
-
-
- 第九章 常见问题
-
- </span>
-
-
- <ul class="articles">
-
-
- <li class="chapter " data-level="7.5.1" data-path="Business.html">
-
- <a href="Business.html">
-
-
- 商业授权
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.5.2" data-path="ResourceDir.html">
-
- <a href="ResourceDir.html">
-
-
- 资源目录
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.5.3" data-path="RichTextEditor.html">
-
- <a href="RichTextEditor.html">
-
-
- 富文本编辑器
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.5.4" data-path="NavActive.html">
-
- <a href="NavActive.html">
-
-
- 导航Active
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.5.5" data-path="CategoryPage.html">
-
- <a href="CategoryPage.html">
-
-
- 栏目分页
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.5.6" data-path="CategoryFilter.html">
-
- <a href="CategoryFilter.html">
-
-
- 多级栏目筛选
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.5.7" data-path="MutipleLanguage.html">
-
- <a href="MutipleLanguage.html">
-
-
- 多语言网站
-
- </a>
-
-
- </li>
-
- <li class="chapter active" data-level="7.5.8" data-path="UploadContrl.html">
-
- <a href="UploadContrl.html">
-
-
- 上传大小控制
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.5.9" data-path="ResourceNotFound.html">
-
- <a href="ResourceNotFound.html">
-
-
- 上线图片404
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="7.5.10" data-path="Favicon.html">
-
- <a href="Favicon.html">
-
-
- 站点Favicon
-
- </a>
-
-
- </li>
-
- </ul>
-
- </li>
-
- <li class="chapter " data-level="7.6" >
-
- <span>
-
-
- 第十章 关于捐赠
-
- </span>
-
-
- <ul class="articles">
-
-
- <li class="chapter " data-level="7.6.1" data-path="../chapter10/DonationList.html">
-
- <a href="../chapter10/DonationList.html">
-
-
- 授权和捐赠
-
- </a>
-
-
- </li>
-
- </ul>
-
- </li>
-
-
- <li class="divider"></li>
- <li>
- <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
- 本书使用 GitBook 发布
- </a>
- </li>
- </ul>
- </nav>
-
-
- </div>
- <div class="book-body">
-
- <div class="body-inner">
-
-
- <div class="book-header" role="navigation">
-
- <!-- Title -->
- <h1>
- <i class="fa fa-circle-o-notch fa-spin"></i>
- <a href=".." >上传大小控制</a>
- </h1>
- </div>
- <div class="page-wrapper" tabindex="-1" role="main">
- <div class="page-inner">
-
- <div id="book-search-results">
- <div class="search-noresults">
-
- <section class="normal markdown-section">
-
- <div style="display: flex;">
- <img src="https://oss.iteachyou.cc/logo.png" height="30">
- <div style="margin-left: 5px; font-size: 30px; line-height: 30px; font-weight: bold;">梦想家内容管理系统</div>
- </div>
- <hr>
- <h3 id="问:后台的上传文件大小控制?"><a name="问:后台的上传文件大小控制?" class="plugin-anchor" href="#问:后台的上传文件大小控制?"><i class="fa fa-link" aria-hidden="true"></i></a>问:后台的上传文件大小控制?</h3>
- <p>在上传文件中,有两处控制上传大小,如下</p>
- <h4 id="1-spring-boot默认上传大小为20m,如要更改,则在applicationyml中添加如下配置:"><a name="1-spring-boot默认上传大小为20m,如要更改,则在applicationyml中添加如下配置:" class="plugin-anchor" href="#1-spring-boot默认上传大小为20m,如要更改,则在applicationyml中添加如下配置:"><i class="fa fa-link" aria-hidden="true"></i></a>1. Spring boot默认上传大小为20M,如要更改,则在application.yml中添加如下配置:</h4>
- <pre><code class="lang-yaml"><span class="hljs-attr">spring:</span>
- <span class="hljs-attr"> servlet:</span>
- <span class="hljs-attr"> multipart:</span>
- <span class="hljs-attr"> max-file-size:</span> <span class="hljs-number">50</span>MB <span class="hljs-comment">#上传文件的大小</span>
- <span class="hljs-attr"> max-request-size:</span> <span class="hljs-number">50</span>MB <span class="hljs-comment">#Tomcat请求的大小</span>
- </code></pre>
- <h4 id="2-在富文本编辑器中上传文件,大小控制在configjson,该文件位于资源目录中。分别对如下配置项进行修改即可。"><a name="2-在富文本编辑器中上传文件,大小控制在configjson,该文件位于资源目录中。分别对如下配置项进行修改即可。" class="plugin-anchor" href="#2-在富文本编辑器中上传文件,大小控制在configjson,该文件位于资源目录中。分别对如下配置项进行修改即可。"><i class="fa fa-link" aria-hidden="true"></i></a>2. 在富文本编辑器中上传文件,大小控制在config.json,该文件位于资源目录中。分别对如下配置项进行修改即可。</h4>
- <pre><code class="lang-yaml">/* 前后端通信相关的配置,注释只允许使用多行方式 */
- {
- /* 上传图片配置项 */
- <span class="hljs-attr"> "imageMaxSize":</span> <span class="hljs-number">2048000</span>, /* 上传大小限制,单位B */
- /* 涂鸦图片上传配置项 */
- <span class="hljs-attr"> "scrawlMaxSize":</span> <span class="hljs-number">2048000</span>, /* 上传大小限制,单位B */
- /* 抓取远程图片配置 */
- <span class="hljs-attr"> "catcherMaxSize":</span> <span class="hljs-number">2048000</span>, /* 上传大小限制,单位B */
- /* 上传视频配置 */
- <span class="hljs-attr"> "videoMaxSize":</span> <span class="hljs-number">102400000</span>, /* 上传大小限制,单位B,默认<span class="hljs-number">100</span>MB */
- /* 上传文件配置 */
- <span class="hljs-attr"> "fileMaxSize":</span> <span class="hljs-number">51200000</span>, /* 上传大小限制,单位B,默认<span class="hljs-number">50</span>MB */
- }
- </code></pre>
- <h4 id="3-上线后在nginx中,上传大小控制在nginxconf中,如下"><a name="3-上线后在nginx中,上传大小控制在nginxconf中,如下" class="plugin-anchor" href="#3-上线后在nginx中,上传大小控制在nginxconf中,如下"><i class="fa fa-link" aria-hidden="true"></i></a>3. 上线后在Nginx中,上传大小控制在nginx.conf中,如下</h4>
- <pre><code class="lang-shell"># 此文件yum安装的nginx,一般在/etc/nginx/nginx.conf
- http {
- client_max_body_size 50m; # 上传大小为50M
- }
- </code></pre>
-
- </section>
-
- </div>
- <div class="search-results">
- <div class="has-results">
-
- <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
- <ul class="search-results-list"></ul>
-
- </div>
- <div class="no-results">
-
- <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
-
- </div>
- </div>
- </div>
- </div>
- </div>
-
- </div>
-
-
- <a href="MutipleLanguage.html" class="navigation navigation-prev " aria-label="Previous page: 多语言网站">
- <i class="fa fa-angle-left"></i>
- </a>
-
-
- <a href="ResourceNotFound.html" class="navigation navigation-next " aria-label="Next page: 上线图片404">
- <i class="fa fa-angle-right"></i>
- </a>
-
-
-
- </div>
- <script>
- var gitbook = gitbook || [];
- gitbook.push(function() {
- gitbook.page.hasChanged({"page":{"title":"上传大小控制","level":"7.5.8","depth":2,"next":{"title":"上线图片404","level":"7.5.9","depth":2,"path":"chapter09/ResourceNotFound.md","ref":"chapter09/ResourceNotFound.md","articles":[]},"previous":{"title":"多语言网站","level":"7.5.7","depth":2,"path":"chapter09/MutipleLanguage.md","ref":"chapter09/MutipleLanguage.md","articles":[]},"dir":"ltr"},"config":{"plugins":["anchors","favicon-absolute","highlight"],"styles":{"website":"./styles/website.css"},"pluginsConfig":{"favicon-absolute":{"appleTouchIconMore":{},"appleTouchIconPrecomposed152":"./source/images/favicon.png","appleTouchIconPrecomposedMore":{},"favicon":"./source/images/favicon.ico"},"anchors":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"王俊南","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"梦想家内容管理系统(Dreamer CMS)","language":"zh-hans","links":{"sidebar":{"I Teach You,我教你!":"http://www.iteachyou.cc","Dreamer CMS(Gitee)":"https://gitee.com/iteachyou/dreamer_cms","Dreamer CMS(Github)":"https://github.com/iteachyou-wjn/dreamer_cms"}},"gitbook":"3.2.3","description":"Dreamer CMS,梦想家内容管理系统官方使用文档"},"file":{"path":"chapter09/UploadContrl.md","mtime":"2023-09-28T07:00:56.535Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-05-14T01:34:04.807Z"},"basePath":"..","book":{"language":""}});
- });
- </script>
- </div>
-
- <script src="../gitbook/gitbook.js"></script>
- <script src="../gitbook/theme.js"></script>
-
-
- <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
-
-
-
- <script src="../gitbook/gitbook-plugin-search/search.js"></script>
-
-
-
- <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
-
-
-
- <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
-
-
-
- <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
-
-
-
- <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
-
-
- </body>
- </html>
|