File attachments never complete
JS error:

missing ) in parenthetical
drupal.js (line 322)
oad/js\" class=\"upload\" /\x3e\n\x3cinput type=\"hidden\" name=\"edit[vid]\" id=\"edit-vid\" value=\"4\" /\x3e\n" });

but there is no missing ')';

it appears that 'response' in invalid in redirectFormButton() in drupal.js

New, clean installaion
Drupal 4.73
Mysql Server 4.1.18_3
PHP 5.1

Comments

caplain’s picture

/misc/drupal.js
redirectFormButton()

I commented out the block that checks the response from the iframe body:

/*
        response = parseJson(response);
        // Check response code
        if (response.status == 0) {
          handler.onerror(response.data);
          return;
        }
*/

to avoid the js error. The attachment acts like it completed, but after submitting the page there is no indication that anything was uploaded.

And by the way, where would an uploaded file be save to?

caplain’s picture

I just tried another drupal site see normal file attachment behaviour and saw the attached file dialog which did not show on my site in the test I described in my previous comment.

caplain’s picture

JSON was choking on a 'compressed chunk' comment inserted by apache gzip encoding.