我正在使用插件来执行图像裁剪.
如果你在http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/下载这个插件 ,你可以看到下面这行,这是做什么的$ max_file*1048576
如果你看到$ max_file,它被硬编码为3,他们也提到了MB.*1048576做了什么.
if ($userfile_size > ($max_file*1048576)) {
$error.= "Images must be under ".$max_file."MB in size";
}
Run Code Online (Sandbox Code Playgroud)
提前致谢
| 归档时间: |
|
| 查看次数: |
319 次 |
| 最近记录: |