--- media.php	2011-06-15 17:10:35.674581002 -0400
+++ media2.php	2011-06-15 21:20:16.427439001 -0400
@@ -246,6 +246,9 @@
 	if ( ! file_exists( $file ) )
 		return sprintf(__('File &#8220;%s&#8221; doesn&#8217;t exist?'), $file);
 
+	if( ! is_file( $file ) )
+		return sprintf(__('&#8220;%s&#8221; is not a file.'), $file);
+
 	if ( ! function_exists('imagecreatefromstring') )
 		return __('The GD image library is not installed.');
 
@@ -1438,4 +1441,4 @@
 	return apply_filters( 'embed_googlevideo', '<embed type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docid=' . esc_attr($matches[2]) . '&amp;hl=en&amp;fs=true" style="width:' . esc_attr($width) . 'px;height:' . esc_attr($height) . 'px" allowFullScreen="true" allowScriptAccess="always" />', $matches, $attr, $url, $rawattr );
 }
 
-?>
\ No newline at end of file
+?>
