Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#3 | imagefield_357903.patch | 997 bytes | drewish |
cck_imagefield_error.jpg | 28.84 KB | droople |
Comments
Comment #1
escoles CreditAttribution: escoles commentedI'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).
Comment #2
escoles CreditAttribution: escoles commentedI 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.
Comment #3
drewish CreditAttribution: drewish commentedplease try out the attached patch.
Comment #4
drewish CreditAttribution: drewish commentedplease try out the attached patch.
Comment #5
threexk CreditAttribution: threexk commentedFixed 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
Comment #6
gthing CreditAttribution: gthing commentedI am having the same problem - the patch did not fix it for me.
Comment #7
gthing CreditAttribution: gthing commentedComment #8
drewish CreditAttribution: drewish commentedmarked #352939: Can only upload one file type as a duplciate. gthing make sure you're running the latest filefield release.
Comment #9
albert_philly CreditAttribution: albert_philly commentedPatch 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.
Comment #10
decibel.places CreditAttribution: decibel.places commentedThe 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
Comment #11
frjo CreditAttribution: frjo commentedThe 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.
Comment #12
drewish CreditAttribution: drewish commentedmarked #371614: Error in javascript validation as a duplicate.
Comment #13
drewish CreditAttribution: drewish commentedcommitted the patch in #3 to DRUPAL-5--2.
Comment #14
emdalton CreditAttribution: emdalton commentedI'm still getting this error on Drupal 5.15 and Imagefield 5.x-2.4.
Comment #15
quicksketchemdalton, this problem is fixed but a new release hasn't been put out. It'll be in 5.x-2.5.
Comment #16
emdalton CreditAttribution: emdalton commentedWhen is 5.x-2.5 out? Is the fix in dev now?
Comment #17
quicksketchYes 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.