I'm using CCK 5.x-1.6-1 and Imagefield 5.x-1.x-dev, download method set to public. I'm using the imagefield in a content type called concept art, in conjunction with views and imagecache to make the thumbs for the view. Everything is working great and as I expect. I get a node with uploaded image and a description, and thumbs show in a view of all concept art. The problem I'm experiencing is when I'm trying to upload a high resolution image. The image will appear to upload, but when I submit the node it returns me to the form with an error message saying "Concept Art Image is required." I can not find the image on my server, which is odd because before i submit it shows in the node as though it's been uploaded.
I've tried two different high-res images, one is about 2600x2000 pixels, the other is about 3120x4160 pixels. Is there a known limitation with this module, or would this be related with imagecache? If this is a known limitation in either module, how high of a resolution can this module handle without producing this error?
Comments
Comment #1
tannerjfco commentedAfter further playing with this, I've found the issue is totally different then what I though. The issue is that for some reason, if I browse to a file, and hit the upload button in the cck imagefield for my content type, it will sometimes upload and show the thumbnail, and when i hit submit for the entire node it throws the error i described above. other times i will browse to an image, hit the upload button, and no image will show up. However, if i browse to a file, don't hit the upload button, and skip to the submit button for the form, and the image will upload and the node will post every time. This is definitely strange behavior, as using the upload button will work sometimes, work partially sometimes, or not at all. I appreciate any help that can be offered with this issue.
Comment #2
drewish commentedit's counter intuitive to me that the upload button wouldn't work while the normal submit would...
Comment #3
tannerjfco commentedI know. it's really confusing, but it works every time if i just skip to the submit button. is anyone else encountering this issue? should i try using 1.1 instead of 1.x-dev?
Comment #4
andrewfn commentedThis is a longstanding problem with Drupal on some sites and is caused by an underlying asynchronous Javascript bug. The workaround is to use CSS to hide the attach button.
See here for the root of the problem and my comment: http://drupal.org/node/152695#comment-638768
Comment #5
dopry commentedthe AJAX issue is outside of imagefield... I don't really experience it myself... Do you wait for the AJAX uploads to complete?
Comment #6
andrewfn commentedYes, the ajax upload completes and even gives you a link to where the file is supposed to be.
Comment #7
xiong commentedthis bug happened to me when I tried to uploaed a png file that is 2.1M bytes. it just wont show up.
it works fine when uploading a 850K png file (atually the same picture but optimized to a smaller file size).
Comment #8
dopry commentedmaybe large images hitting memory limits, max_upload_size, or max_post_site....
@xiong: sounds like you hit the default php max_upload_size.
Comment #9
dopry commented