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

roger6106’s picture

The second paragraph should say "When I try to upload using imagefield..."

Alan D.’s picture

Status: Active » Postponed (maintainer needs more info)

Using 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.

roger6106’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

When 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.

roger6106’s picture

I've re-enabled this stuff, and somehow it's all working now. I guess my site was just acting up.

Alan D.’s picture

Thanks for the feedback.

Good luck with things.

Alan