storage-local.html 1.4 KB

1234567891011121314151617181920
  1. <form onsubmit="return false;" data-auto="true" action="{:url()}" method="post" class='layui-form layui-card' autocomplete="off">
  2. <div class="layui-card-body">
  3. <div class="color-text margin-left-40 margin-bottom-20 layui-code" style="border-left-width:1px;background:none">
  4. <p>文件将存储在本地服务器,需确保服务器的 public/upload 目录有写入权限,有足够的存储空间!</p>
  5. </div>
  6. <div class="layui-form-item">
  7. <label class="layui-form-label">AllowExts<br><span class="nowrap color-desc">允许类型</span></label>
  8. <div class="layui-input-block">
  9. <input type="text" name="storage_local_exts" required value="{:sysconf('storage_local_exts')}" placeholder="请输入系统文件上传后缀" class="layui-input">
  10. <p class="help-block">设置系统允许上传文件的后缀,多个以英文逗号隔开。如:png,jpg,rar,doc</p>
  11. </div>
  12. </div>
  13. <div class="hr-line-dashed margin-left-40"></div>
  14. <div class="layui-form-item text-center padding-left-40">
  15. <input type="hidden" name="storage_type" value="local">
  16. <button class="layui-btn" type="submit">保存配置</button>
  17. <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消修改吗?" data-close>取消修改</button>
  18. </div>
  19. </div>
  20. </form>