If i use transliteration module, uploaded files are converted in DB, but in file system i see not converted names.

Thanx.

Comments

castawaybcn’s picture

I kept on getting this errors until I rolled back to jqp 6.x-2.0:
in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in /path/to/my/install/sites/all/modules/jqp/jqp.admin.inc on line 153.
And the library was never installed properly so I could not use swfupload.
And I still can't, but I think that deserves a different issue as now the library is properly recognized...

botanik’s picture

Yes, during SWFUpload library installation I get this error, I'am fix it in jqp.admin.inc - #714910: Can`t install new library .. just remove isset function and library install correctly. May be maintainers fix this error by another way, but this issue about another bug.

skilip’s picture

I've rolled out a patch for this @ #714910: Can`t install new library. Hope this patch fixes this!

castawaybcn’s picture

you are right botanik, my bad.
I was doing too many things at once and posted in the wrong place. Sorry.

skilip’s picture

Status: Active » Closed (fixed)
kiliweb’s picture

Does anyone succeed to make Transliteration module (http://drupal.org/project/transliteration) works with SWFUpload ?

Thanks

eugenmayer’s picture

killweb should be easy if the new thumbnail-generation method is in place.

kiliweb’s picture

I finally add the suport of transliteration by myself, directly inside the SWFUpload module by using the transliteration documentation.
Thanks.

patrickroma’s picture

@kiliweb: Could you please describe how you solved it? We have the same problem here...

dreipunktnull’s picture

@kiliweb: I'd be interested in that too as I can't get it to work either. I tried to change the filename and -path as suggested in the readme using transliteration.module in hook_swfupload but without success. Thanks in advance.

Edit: Never mind, I just found out how to do it. It's very simple.

function MYMODULE_swfupload(&$file, $op, &$instance, $widget) {
  if ($op == 'move_uploaded_file') {
    if (module_exists('transliteration')) {
      $_FILES[$instance->name]['name'] = transliteration_clean_filename($_FILES[$instance->name]['name'], language_default('language'));
    }
  }
}
patrickroma’s picture

@dreipunktnull: We tried your solution but without success. A file with the name äöü ß].jpg becomes with this method only ß ].jpg... Does the above way really work for you?

dreipunktnull’s picture

@patrickroma: Yes, it works even with filenames containing umlauts and brackets. I tested with a file called 'testÄööß]]].jpg' and it was saved under 'testaeoeoess.jpg'. Maybe you should try to set a concrete language instead of default language. How did you implement my solution?

queenvictoria’s picture

StatusFileSize
new737 bytes

Thanks @dreipunktnull I've created a patch using the method in #10. My situation is just spaces/caps so I've not tested special characters. And I've patch SWFUpload module.

sin’s picture

#10 works for me, thanks!

pfrilling’s picture

queenvictoria's patch in #13 worked for me.