Download & Extend

Non-English filenames cause the file to not display

Project:Flash Node
Version:6.x-3.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I have a Japanese site, in which the user's have attempted to upload files with Japanese characters in the filename. The upload then fails, and the flash is not displayed. I added a validation check so that only filenames with spaces, periods, hyphens, underscores, letters and numbers are allowed. I also added a note to the description of the file upload form element explaining this.

I am attaching the patch for the changes I made, though you don't need to use it if you don't want. But I would appreciate it if you could fix this problem in future versions of the module.

AttachmentSize
flashnode.module.patch10.01 KB

Comments

#1

maybe it would be beneficial to tie into the transliteration.module http://drupal.org/project/transliteration

#2

Thanks mate, that module is new to me! Unfortunately, it said this about it:

[blockquote]it works quite bad on Japanese and Thai[/blockquote]

And I'm using Japanese! But that being said, I'm still going to check it out.

nobody click here