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.
When the upload element is installed imagefield uploads do not work. Regular filefield uploads still work.
When I try to upload using filefield I get the error:
"An HTTP error 0 occurred.
/filefield/ahah/[content-type]/field_[field-name]/0"
Comments
Comment #1
roger6106 CreditAttribution: roger6106 commentedThe second paragraph should say "When I try to upload using imagefield..."
Comment #2
Alan D. CreditAttribution: Alan D. commentedUsing the latest versions of filefield/imagefield/upload element (dev) I had no issues. Can you double check that the full directory paths exist and that the modules have permissions to write within these directories. Also, try a small image to ensure that it is not a PHP upload setting that is causing the error. (these are the 3 global errors that cause upload issues)
The error you stated suggests that there is either 0 output from the server on the imagefield ajax upload (most likely a PHP setting error, like the upload was too large and the POST failed) or that there has been an error somewhere else in the code.
In case code errors, please ensure that errors are being added to the logs, and see if there is any info there that can help explain what is going on. Also, if you have FireBug installed, can you see what output is being returned from the server during the failed AHAH request. This can be seen in the NET tab of FireBug in FF
Thanks.
Comment #3
roger6106 CreditAttribution: roger6106 commentedWhen I disabled Upload Element the same uploads worked, but I think there may be something wrong with my imagefield setup. I've been having trouble with not being able to edit pages with imagefields on them. I don't have the time to try to figure out what's causing the problem, so I'm just going to remove imagefield from my site.
Comment #4
roger6106 CreditAttribution: roger6106 commentedI've re-enabled this stuff, and somehow it's all working now. I guess my site was just acting up.
Comment #5
Alan D. CreditAttribution: Alan D. commentedThanks for the feedback.
Good luck with things.
Alan