I've been getting an http 0 error when uploding my files with filefield and filefiled image for 2 days.
I tried to uninstall all my modules and to find I've changed before the bug: I activated the time report of devel module...
It may be usefull to know this bug

CommentFileSizeAuthor
#8 upload-element-javascript-headers.patch594 bytesmrfelton
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

moshe weitzman’s picture

Project: Devel » FileField
Version: 6.x-1.9 » 6.x-3.x-dev
Component: devel » Code
Ocyrhoé’s picture

Why moving the issue? As said here http://drupal.org/user/56020, other modules may not include Devel specific code...

moshe weitzman’s picture

As i stated there, modules are advertising their code as text/html when in fact they are serving text/javascript

jpetso’s picture

And we can't advertise it as text/javascript because that breaks upload JS callbacks for whatever reason. Perhaps we should just get a warning message into hook_requirements() of either Devel or filefield.

moshe weitzman’s picture

If you'd rather implement hook_requirements than put in the $GLOBALS['devel_shutdown'] = TRUE, then please do so. One of these lets admins do their work and the other doesn't. Seems that this slight code blemish better than the alternatives ... Or submit a patch for devel which is even more work for you.

jpetso’s picture

Yeah, you know, I already had the devel_shutdown thing in filefield and dopry removed it again. If it was just for me, I wouldn't have a problem with it.

dopry’s picture

Status: Active » Closed (fixed)

yeppers I put tha back in for 2.x and we might even see it in the 3.x's.

mrfelton’s picture

Edit: edited wrong post by mistake

gianfrasoft’s picture

I solved in a strange way but I did!

Please, take a look at this:

http://drupal.org/node/491610#comment-4260902