当前位置:网站首页>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
边栏推荐
猜你喜欢
SSH uses private key to connect to server without key
JUC concurrent programming 07 -- is fair lock really fair (source code analysis)
【leetcode】102.二叉树的层序遍历
Net start MySQL MySQL service is starting MySQL service failed to start. The service did not report any errors.
C语言——自定义类型
微信小程序简介、发展史、小程序的优点、申请账号、开发工具、初识wxml文件和wxss文件
[provincial election joint examination 2022 d2t1] card (state compression DP, FWT convolution)
Windows installs redis and sets the redis service to start automatically
ID number verification system based on visual structure - Raspberry implementation
得到知识服务app原型设计比较与实践
随机推荐
Dirichlet prefix sum (number theory optimization formula sub complexity weapon)
Arm debugging (1): two methods to redirect printf to serial port in keil
19. Delete the penultimate node of the linked list (linked list)
第120章 SQL函数 ROUND
Notes on concurrent programming of vegetables (V) thread safety and lock solution
微信小程序简介、发展史、小程序的优点、申请账号、开发工具、初识wxml文件和wxss文件
Yarn core parameter configuration
Jerry's factors that usually affect CPU performance test results are: [article]
Learning note 5 - gradient explosion and gradient disappearance (k-fold cross verification)
得到知识服务app原型设计比较与实践
Using multithreading to output abc10 times in sequence
App. In wechat applet JS files, components, APIs
Qinglong panel pull library command update [April 20, 2022] collection is not lost
[provincial election joint examination 2022 d2t1] card (state compression DP, FWT convolution)
Jinglianwen technology - professional data annotation company and intelligent data annotation platform
CentOS/Linux安装MySQL
Introduction to data analysis 𞓜 kaggle Titanic mission (III) - > explore data analysis
Notes on concurrent programming of vegetables (IX) asynchronous IO to realize concurrent crawler acceleration
Go language practice mode - functional options pattern
Jerry's more accurate determination of abnormal address [chapter]