Can't download/upload file with Big5 Chinese filename on Windows server
-
Love BuddyDrive, great file management plugin ever!
And here is a little problem I really want to solve it, and need some help.
I am running WordPress on a windows server (AppServ- Appache), and it will occur Chinese/ Big5 filename encode issue when uploading and downloading files.
I was some kind solved the Uploading problem (through Google) by using iconv() function to modify wp-admin/includes/file.php
change
$new_file = $uploads['path'] . "/$filename";
to
$new_file = $uploads['path'] . "/" . iconv("UTF-8","BIG5",$filename);
return apply_filters( 'wp_handle_upload', array( 'file' => $new_file, 'url' => $url, 'type' => $type ), 'upload' );
to
return apply_filters( 'wp_handle_upload', array( 'file' => $uploads['path'] . "/$filename", 'url' => $url, 'type' => $type ) , 'upload');
, but still stuck on the Download, everytime when I click filename to download the file, and it will lead me to the page “BuddyDrive”, and do nothing.
I don’t know PHP a lot, can someone tell me how to do the modification on BuddyDrive download code?
I think I need to do a little trick on buddydrive-items.php, but really don’t no how to do it.
Please someone give me some help, thanks!!
dAb
- The topic ‘Can't download/upload file with Big5 Chinese filename on Windows server’ is closed to new replies.