The File's name is "отчет за І квартал 2009 год.pdf" -Russian characters.

When renaming the same file with English Characters, it gets added to the node fine.

Any ideas why?

CommentFileSizeAuthor
#2 webfm_806614.patch3.71 KBnhck

Comments

nhck’s picture

Issue tags: +basename

Thank you for reporting this and helping to make webfm better!

I am able to duplicate and confirm this bug. It is related to the use of basename in webfm.module. basename() is locale dependent and we'll need to replace basename by something else.

Until this happens a quick fix for you could be to set the correct locale in your php.ini.

nhck’s picture

Status: Active » Needs review
StatusFileSize
new3.71 KB

This patch should fix it I think.

If you like you can test it - I'll wait for another test before commit.

Learn how to apply a patch here: http://drupal.org/patch/apply

Thank you :-)

nhck’s picture

Nobody?

nhck’s picture

Version: 6.x-2.12 » 6.x-2.x-dev
Status: Needs review » Fixed

#806614 by Niels Hackius | taras7t: Fixed 'file X path not found' when adding file to node (file name contains Russian characters).

Thank you for helping out and reporting this. This is fixed in CVS.

Status: Fixed » Closed (fixed)
Issue tags: -language, -file, -WebFM, -add to node, -basename

Automatically closed -- issue fixed for 2 weeks with no activity.