反馈 图片上传没有判断图片的有效性,现在只是根据后缀名来判断的

ppplinve · September 13, 2013 · 1798 hits

@huacnlee 大大看看是否有需要 check_img = MiniMagick::Image.new("#{decompression_temp_dir}/#{file}") check_res = false begin check_res = check_img.valid? rescue Exception => e check_image_error += e.message end

No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.