Based on this issue http://drupal.org/node/714906 (posts 10 and 13) for SWFUpload I've managed to add transliteration support for imce_swfupload by inserting the following code to imce_swfupload.module at line 50. It seems to work with Greek characters, spaces & caps at least. I am new to drupal and I don't know yet how to create a patch but the code needs to be tested by more people anyway.

	if (module_exists('transliteration')) {
		$_FILES['files']['name'][$key] = transliteration_clean_filename($_FILES[$key]['name'], language_default('language'));
	}
	
	// Replace tokens.
	if (module_exists('token')) {
		$file->file_path = token_replace($file->file_path, 'user');
	}

Comments

tekante’s picture

Assigned: Unassigned » tekante
tekante’s picture

Attached are your requested changes in patch form. The following documentation has information about creating patches http://drupal.org/node/707484.

In your suggested code changes, it appears that you are also adding in some token module support but that code is appearing before the $file variable is initialized. In the patches you reference the token support was already present in the existing code so I suspect you may have pulled it unintentionally.

tekante’s picture

Status: Active » Needs work

Patch needs testing by users familiar with transliteration module and question about token support mentioned in #2 needs clarification