Non-English filenames cause the file to not display

Jay Matwichuk - July 21, 2009 - 07:56
Project:Flash Node
Version:6.x-3.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

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

#1

VM - July 21, 2009 - 07:57

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

#2

Jay Matwichuk - July 21, 2009 - 13:21

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.

 
 

Drupal is a registered trademark of Dries Buytaert.