When I'm trying to upload an image using the image field settings for the content type, I get The selected file [anyfilename].[jpg,png] could not be uploaded. The file is not a known image format.
It comes on for any file name with the an image file type of jpg or png.
I've checked the recent log entries there an entry for all image upload attempts as follows:
Type filefield
Date Sunday, July 12, 2009 - 21:45
User admin
Location http://janjou/filefield/ahah/local_delivery/field_image_cache/0
Referrer http://janjou/node/add/local-delivery
Message The file upload failed. field_image_cache_0
Severity notice
Hostname
Operations

I'm able to upload files after changing the file upload instead of image. I'm not sure if this issue should be for the filefield module or the imagefield module. Any advice will be greatly appreciated.

Comments

mor_eli’s picture

Category: bug » support
quicksketch’s picture

I'm not able to reproduce this issue, as it doesn't occur on a fresh installation of Drupal. It looks like this problem might be specific to Ubercart (guessing from the name of your field). If you can create a new ImageField on a different content type and it doesn't have this problem, the issue should be filed with Ubercart. Otherwise if there's a way to reproduce it, I'll be happy to have a look.

websmash’s picture

Version: 6.x-3.1 » 6.x-3.0

Same over here

mor_eli’s picture

I don't know why this is not getting change, but every time I'm upgrading Drupal Core, I go and make the changes in this post, to work around this problem
http://drupal.org/node/301866#comment-1008198

It works, but I don't know why it's not part of the core changes.

quicksketch’s picture

Status: Active » Closed (fixed)

As I'm unable to reproduce this issue or get instructions on how to reproduce it, I'm closing after a lack of activity.

allanp’s picture

Status: Closed (fixed) » Active

I just completed a new Drupal install on a new server, transfered over all of the files from the existing site, and I am now getting this same error message - on every content type that uses ImageField. (not just Ubercart)

I tried the fix from drupal.org/node/301866 but it did not fix the problem.

We are using IIS7

Has anyone found a solution for this? (I hope, I hope)

Thank you,

quicksketch’s picture

Status: Active » Closed (fixed)

This is a Drupal core issue with some versions of IIS. See #419734: supported file types return - The file is not a known image format for the ImageField issue and #307636: image_get_info() fails on IIS on new uploads for the core issue.