From ce56b704b2a2d50f63180a4c1e5573bbac581c2a Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 8 Dec 2010 07:11:39 +0000 Subject: #307636 by zbricoleur: Fixed image_get_info() fails on IIS on new uploads --- includes/image.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/image.inc b/includes/image.inc index 63eb88b5c..9eb813dc1 100644 --- a/includes/image.inc +++ b/includes/image.inc @@ -122,7 +122,7 @@ function image_toolkit_invoke($method, stdClass $image, array $params = array()) */ function image_get_info($filepath, $toolkit = FALSE) { $details = FALSE; - if (!is_file($filepath)) { + if (!is_file($filepath) && !is_uploaded_file($filepath)) { return $details; } -- cgit v1.2.3