Setup

5.14
CCK 5.x-1.10
Imagefield 5.x-2.x.dev
ImageAPI 5.1.x-dev
ImageCache 5.x-2.x-dev

Tried uploading png,jpg,gif See attached image for error

CommentFileSizeAuthor
#3 imagefield_357903.patch997 bytesdrewish
cck_imagefield_error.jpg28.84 KBdroople
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

escoles’s picture

I'm having the same issue, on version 5x-2.2.

I had just upgraded to see if it would help in dealing with a failure to upload files.

So far I've tested it with Firefox 3 on a Mac (10.5).

escoles’s picture

I just resolved this issue on my own system.

Problem was due to the Unix file permissions on the image I was trying to upload.

The image had been copied from a server, and my user ID only had read permission on the file, not write. Once I changed my permission to "Read and Write" and cleared my browser cache, I no longer got the error message and was able to upload the file.

(Yes, I realize it doesn't make sense.)

Now that I think of it, I used to have similar problems with Dreamweaver and uploading to servers via FTP.

drewish’s picture

Status: Active » Needs review
FileSize
997 bytes

please try out the attached patch.

drewish’s picture

please try out the attached patch.

threexk’s picture

Fixed the problem for me. I tried it out with all the default formats: .jpg, .jpeg, .png, and .gif. It also correctly recognized an invalid file format. I did not try changing the acceptable file formats.

I did see an error running update.php after installing 5.x-2.x-dev from 5.x-2.2, but it's probably unrelated:
Fatal error: Call to undefined function _content_admin_display_contexts() in /home//sites/all/modules/imagefield/imagefield.install on line 81

gthing’s picture

I am having the same problem - the patch did not fix it for me.

gthing’s picture

Status: Needs review » Needs work
drewish’s picture

Status: Needs work » Needs review

marked #352939: Can only upload one file type as a duplciate. gthing make sure you're running the latest filefield release.

albert_philly’s picture

Patch didn't make any difference for me. I'm still getting the same error as the original poster with the same versions of the relevant modules.

Testing on Mac OS X 10.5 with Firefox 3 and Safari if it makes any difference.

decibel.places’s picture

The patch fixed a D 5.15 site - I was able to upload an image in a custom CCK content type

FFox 3.0.6 + Vista (browser) site hosted on LAMP

I am not getting the Fatal Error

perhaps it is related to this: http://drupal.org/node/128878 so it may be theme-related

frjo’s picture

The patch in #3 works well for me and completely resolved this problem.

You need to clear the browsers cache so you get the updated code. I use the Javascript Aggregation module so I needed to clear its cache also.

drewish’s picture

Title: Imagefield won't upload image files » JavaScript on Imagefield won't upload image files
drewish’s picture

Status: Needs review » Fixed

committed the patch in #3 to DRUPAL-5--2.

emdalton’s picture

Status: Fixed » Active

I'm still getting this error on Drupal 5.15 and Imagefield 5.x-2.4.

quicksketch’s picture

Status: Active » Fixed

emdalton, this problem is fixed but a new release hasn't been put out. It'll be in 5.x-2.5.

emdalton’s picture

When is 5.x-2.5 out? Is the fix in dev now?

quicksketch’s picture

Yes the fix is in the dev version. I'm not sure when 2.5 will be out as I'm focusing on getting out a stable D6. I'll need to consult with drewish on how stable the Drupal 5 version is.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.