当前位置:网站首页>百度编辑器上传图片设置自定义目录
百度编辑器上传图片设置自定义目录
2022-07-23 12:34:00 【叶落无痕123】

要改的文件所在目录

要改的文件

Uploader.class.php
把默认的网站根目录注释或者删除$rootPath = $_SERVER['DOCUMENT_ROOT'];
增加自定义路径$rootPath = '/FILES/http://static.rongtuojinrong.com/activity/juyiju';
就会代替根目录。

config.json
程序就会在$rootPath = '/FILES/http://static.rongtuojinrong.com/activity/juyiju'目录下建立目录/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}, 返回的路径就是/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}。比如/upload/image/20190720/1563633110123456.文件后缀名。如果/FILES/http://static.rongtuojinrong.com对应了域名是http://static.rongtuojinrong.com而且又配置了"imageUrlPrefix": "http://static.rongtuojinrong.com/activity/juyiju" 最终的图片地址就是http://static.rongtuojinrong.com/activity/juyiju/upload/image/20190720/1563633110123456.文件后缀名。
边栏推荐
- Go interface: go deep into internal principles
- 低佣金账户怎么开?安全吗?
- Backup and restore of database
- pgsql误删除pg_wal文件后,服务启动失败
- Esp8266 nodemcu flash file system (spiffs)
- Several common SQL misuses in MySQL
- nport串口服务器原理,MOXA串口服务器NPORT-5130详细配置
- ESP8266-NodeMCU——从苏宁API获取实时天气
- [2022 freshmen learning] key points of the second week
- EmguCV录制视频
猜你喜欢

Ali Er Mian: when does MySQL use table locks and row locks?

Vinka推出高抗干扰VK36N系列触摸IC:VK36N1D,VK36N2P,VK36N3B,VK36N4I 使用便利
![[suctf 2018]multisql (MySQL precompiled)](/img/ae/501b7f9c6d8259c3c799e4ff0b568b.png)
[suctf 2018]multisql (MySQL precompiled)

Bean Validation入门篇----02

Bean Validation起源篇----01

Memory methods of big end mode and small end mode

Complete knapsack explanation of dynamic programming knapsack problem

The difference between deadlock, hunger and dead cycle

First hello of SOC_ World experiment

table自定义表格的封装
随机推荐
Bean Validation入门篇----02
单片机内部IO口保护电路及IO口电气特性以及为什么不同电压IO之间为什么串联一个电阻?
VMware platform STS certificate expired
Oracle中实现删除指定查询条件的所有数据
动态规划背包问题之多重背包详解
Bean Validation起源篇----01
LeetCode之等式方程的可满足性
Esp8266 nodemcu flash file system (spiffs)
20220721挨揍内容
Custom JSTL tag of JSP
15001.系统设计方案
Calendar日历类
nport串口服务器原理,MOXA串口服务器NPORT-5130详细配置
知道为什么PCBA电路板会板翘吗?
Complete knapsack explanation of dynamic programming knapsack problem
mysql多表查询之_笛卡尔乘积_内连接_隐式连接
Packaging and use of alamofire framework
Go interface: go deep into internal principles
[SUCTF 2018]MultiSQL(mysql预编译)
Vulnstack red sun-4