Change chars

See all posts Reply

Change chars new!
by KRQ, 12 years, 11 months ago
Hi.
When i try to upload files with name contains polish characters like "ł" and "ś" i've got then problem with download. In sql this charactrers change to "?" and on site the same. When i try to download in the name of file chars "?" was replace by "_" and file is saving by txt document.

I wan't to rename uploading file in that way that would not cointans this polish chars.
Like file "pośpiech.jpg" to "pospiech.jpg". "ś" to "s" and etc.Reply
Re: Change chars new!
by colin, 12 years, 11 months ago
The filenames are sanitized for security purposes. You can set file_safe_name to false to prevent this behaviour.
$handle->file_safe_name = false;

If the file is considered dangerous, then the class will add a .txt extension. You can deactivate this behaviour by setting no_script to false:
$handle->no_script = false;
Reply
Re: Change chars new!
by KRQ, 12 years, 11 months ago
Sry, don't take effect. And I forgot to write this earlier that downloadnig file with that chars have 0 size.Reply
Re: Change chars new!
by colin, 12 years, 11 months ago
What doesn't take effect? You need to provide more information. Also, copy here the log produced by the class: the log explains all what the class does.Reply