Working on drupal installation I found the error while I trying to upload image via ImageField CCK module. aty attempt to upload image always returns "The selected file m0300.jpg could not be uploaded. The file is not a known image format."

Discovering situation I found:
this is an issue of image module (see image.inc line 116 image_get_info($file) {..... } ) the issues cause by
is_file($file) function call that always returns FALSE regardless of efective fs permissions.

See http://ua2.php.net/manual/en/function.is-file.php for possible workarounds.

My dev system:
Vista x64 / IIS7 / php 5.29 / drupal 6.13

Regards,
Yurii

Comments

joachim’s picture

Project: Image » ImageField
Version: 6.x-1.0-alpha5 » 6.x-3.x-dev
Component: image.module » Code

Moving to right module.

jfinkel’s picture

A solution that works for me is here: http://drupal.org/node/301454

image.inc Line 117

Change:

if (!is_file($file))

To this:

if (!is_file($file) && !is_uploaded_file($file))
quicksketch’s picture

Title: Regarding ImageField module image upload issues. » is_file() fails on uploaded images on IIS
Project: ImageField » Drupal core
Version: 6.x-3.x-dev » 6.x-dev
Component: Code » image system
Priority: Critical » Normal

Sounds like a core bug to me.

quicksketch’s picture

Status: Active » Closed (duplicate)

[#301454]

quicksketch’s picture