Hi every one,
I am using upload core module, When i Attach any file using this its breaks my ajax in my module , i am using these ajax to show subcategories like when i select any country it shows its related cities but when i attach any file it breaks this ajax and if i select now country it does not show any city , can any one help me how can i solve this issue............

Thanks in Advance

Comments

killes@www.drop.org’s picture

Project: Upload Image » Drupal core
Version: 6.x-1.x-dev » 6.x-dev
Component: Code » upload.module
Priority: Critical » Normal

no ajax here, wrong project, I assume

mdupont’s picture

Status: Active » Closed (cannot reproduce)

More info would be needed, but as it's an old issue I close it for now.

ReKoNe’s picture

Status: Closed (cannot reproduce) » Active

I encounter a similar bug on drupal 6.24 with the following custom form :

$form = array();
$form['picture']['picture_upload'] = array(
	'#type' => 'file',
	'#title' => t('Ajoutez une image'),
	'#size' => 48,
	'#prefix' => '<fieldset>',
	'#suffix' => '</fieldset>',
	'#description' => t('', array('%dimensions' => variable_get('user_picture_dimensions', '85x85'),'%size' => variable_get('user_picture_file_size', '30'))) .' '. variable_get('user_picture_guidelines', ''),
);

// ...

$form['profile_site_discovery'] = array (
	'#type' => 'select',
	'#title' => t("Comment avez-vous connu le site ?"),
	'#options' => __build_profile_options(70, true),
	'#required' => 1,
	'#weight' => 18,
	'#prefix' => '<fieldset>',
	'#suffix' => '</fieldset>',
	'#ahah' => array(
		'path' => 'inscription-etape-2/connaissance-site',
		'wrapper' => 'wrapper-answer',
		'method' => 'replace',
		'effect' => 'fade'
	),
);

$form['wrapper-answer'] = array(
	'#prefix' => '<fieldset id="wrapper-answer">',
	'#value' => t(' '),
	'#suffix' => '</fieldset>',
	'#weight' => 19,
);
return $form;

If I don't choose a picture there's no problem with my ahah process but, if I do, I see an alert about an error HTTP 0 when I select an option in profile_site_discovery's field...

I also see "Resource interpreted as Document but transferred with MIME type text/javascript" in my console

Any suggestion ?
Cheers

ReKoNe’s picture

Here is the solution :
http://drupal.org/node/806500

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.