dotNet疯狂之路No.28 今天很残酷,明天更残酷,后天很美好,但是绝大部分人是死在明天晚上,只有那些真正的英雄才能见到后天的太阳. We're here to put a dent in the universe. Otherwise why else even be here? 前两天遇到个蛋疼的事 在手机上上传头像 大家都知道手机上的照片都不小,我确实被坑了. 开始自己手写个上传类 傻傻的在计算照片大小. 后来查了下有个很好插件 jquery.uploadifive 插件
文件类型不符合安全规则.试试别的文件. 这种错误是由于WordPress中做了文件上传格式的限制,这种限制可以在WordPress中的wp-include/functions.php的get_allowed_mime_types函数中找到,函数如下: function get_allowed_mime_types() { static $mimes = false; if ( !$mimes ) { // Accepted MIME types are set here as PCRE unle