[英]Restrict width and height jquery-file-upload
i want to restrict the user to upload the fixed height and width image using jquery file upload what i get from the option is 我想限制用户使用jquery文件上传来上传固定的高度和宽度图像,我从选项中得到的是
// Uncomment the following version to restrict the size of
// uploaded images:
/*
'' => array(
'max_width' => 1920,
'max_height' => 1200,
'jpeg_quality' => 95
),
I want to check the fixed height and width and i am uploading 2 images and each image has to be in different dimenssion , is there any parameter for that 我想检查固定的高度和宽度,我要上传2张图片,并且每张图片都必须具有不同的尺寸,是否有用于此的任何参数
I would suggest you use PHP rather than any frontend checks in javascript or flash, which can be bypassed. 我建议您使用PHP,而不要使用JavaScript或Flash中的任何前端检查,而可以绕过这些检查。
getimagesize();
Manual: http://php.net/manual/en/function.getimagesize.php 手册: http : //php.net/manual/zh/function.getimagesize.php
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.