当前位置:网站首页>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
边栏推荐
- 454. Sum of four numbers (hash table)
- Yarn resource scheduler
- Detailed explanation of MapReduce calculation process
- Ansible cloud computing automation command line compact version
- IDEA——》每次启动都会Indexing或 scanning files to index
- JVM——》常用参数
- Comparison and practice of prototype design of knowledge service app
- Jinglianwen technology - professional data annotation company and intelligent data annotation platform
- JVM——》常用命令
- Windows installs redis and sets the redis service to start automatically
猜你喜欢
101. Symmetric Tree
解决方案架构师的小锦囊 - 架构图的 5 种类型
Net start MySQL MySQL service is starting MySQL service failed to start. The service did not report any errors.
Yarn resource scheduler
第120章 SQL函数 ROUND
Charles 功能介绍和使用教程
Redis design and Implementation
Reading integrity monitoring techniques for vision navigation systems - 3 background
得到知识服务app原型设计比较与实践
[provincial election joint examination 2022 d2t1] card (state compression DP, FWT convolution)
随机推荐
Deploy jar package
SQL Server 游标循环表数据
Jerry's more accurate determination of abnormal address [chapter]
得到知识服务app原型设计比较与实践
209. Subarray with the smallest length (array)
Yarn resource scheduler
ID number verification system based on visual structure - Raspberry implementation
Turn: Maugham: reading is a portable refuge
Define linked list (linked list)
MySql常用语句
Can Jerry's AES 256bit [chapter]
Read integrity monitoring techniques for vision navigation systems
Download and installation steps of xshell + xftp
Reading integrity monitoring techniques for vision navigation systems - 3 background
Idea - indexing or scanning files to index every time you start
Understand the new economic model of platofarm and its ecological progress
MapReduce core and foundation demo
JUC concurrent programming 07 -- is fair lock really fair (source code analysis)
Swagger2 自定义参数注解如何不显示
Restful、SOAP、RPC、SOA、微服务之间的区别