当前位置:网站首页>Ueditor -- limitation of 4m size of image upload component
Ueditor -- limitation of 4m size of image upload component
2022-04-23 10:45:00 【Glacier Technology】
Generally speaking, it's best not to upload website pictures larger than 4M Of , But there are some special cases , If the website needs to upload a large picture for download .

A website maintained now uses ueditor Editor plugin , It is required to upload pictures without restrictions 4M, Therefore, according to the network loading when uploading pictures in the background , Judgment is the limit of foreground control , It's just /ueditor/dialogs/image/ Under the directory image.js and image.html, stay image.html The following configuration variables are found :
var flashOptions = {
container:"flashContainer", //flash Containers id
url:editor.options.imageUrl, // Upload processing page url Address
ext:'{"param1":"value1", "param2":"value2"}', // A list of custom parameters that can be submitted to the server
fileType:'{"description":"'+lang.fileType+'", "extension":"*.gif;*.jpeg;*.png;*.jpg"}', // Upload file format restrictions
flashUrl:'imageUploader.swf', // Upload with flash Component address
width:608, //flash Width
height:272, //flash Height
gridWidth:121, // The width of each preview image
gridHeight:120, // The height of each preview image
picWidth:100, // The width of a single preview image
picHeight:100, // The height of a single preview image
uploadDataFieldName:editor.options.imageFieldName, // POST Image data in the request key
picDescFieldName:'pictitle', // POST The picture in the request describes key
maxSize:4, // The maximum size of the file , Company M
compressSize:2, // If the image volume exceeds this value before uploading , It's compressed first , Company M
maxNum:32, // How many files can be uploaded at a time
compressSide:editor.options.compressSide, // The benchmark of proportional compression ,0 According to the longest side ,1 In order to follow the width ,2 According to the height
compressLength:editor.options.maxImageSideLength // The maximum acceptable side length , Beyond this value Flash It will automatically compress proportionally
};
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
Only need to flashOptions Inside maxSize Just change it to a larger value . In addition, the picture upload component uses flash Compress , Quality cannot be guaranteed , You can put compressSize The value is also increased accordingly , More in line with business needs . The new version (
v>=1.4.2) Of
ueditor Configuration of image upload and so on , Unified in
/ueditor/php/config.json adjustment , Look at the notes and you can change .
版权声明
本文为[Glacier Technology]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230922151000.html
边栏推荐
- How can swagger2 custom parameter annotations not be displayed
- What are Jerry's usual program exceptions? [chapter]
- 全栈交叉编译X86完成过程经验分享
- Can Jerry's AES 256bit [chapter]
- Shell script interaction free
- 242、有效字母异位词(哈希表)
- 19、删除链表的倒数第N个节点(链表)
- 349、两个数组的交集
- 定义链表(链表)
- Initial exploration of NVIDIA's latest 3D reconstruction technology instant NGP
猜你喜欢
Detailed explanation of MapReduce calculation process

得到知识服务app原型设计比较与实践

部署jar包

得到知识服务app原型设计比较与实践

/Can etc / shadow be cracked?

Configuration of LNMP
![Jerry's more accurate determination of abnormal address [chapter]](/img/ed/a08949bfc63823baf25fd57c324996.png)
Jerry's more accurate determination of abnormal address [chapter]

【leetcode】199.二叉树的右视图

Idea - indexing or scanning files to index every time you start

SQL Server 游标循环表数据
随机推荐
349. Intersection of two arrays
任意文件读取漏洞 利用指南
Arm debugging (1): two methods to redirect printf to serial port in keil
Introduction to data analysis 𞓜 kaggle Titanic mission (III) - > explore data analysis
Reading integrity monitoring techniques for vision navigation systems - 3 background
Initial exploration of NVIDIA's latest 3D reconstruction technology instant NGP
Solution architect's small bag - 5 types of architecture diagrams
RESTful和SOAP的区别
Go language practice mode - functional options pattern
SQL Server cursor circular table data
net start mysql MySQL 服务正在启动 . MySQL 服务无法启动。 服务没有报告任何错误。
Exercise questions and simulation test of refrigeration and air conditioning equipment operation test in 2022
Problems of class in C # and database connection
202. Happy number
Dirichlet prefix sum (number theory optimization formula sub complexity weapon)
Swagger2 自定义参数注解如何不显示
最强日期正则表达式
349、两个数组的交集
[Niuke challenge 47] C. conditions (BitSet acceleration Floyd)
203、移出链表元素(链表)