RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

File mirror script

Newsletter script
MP3 player does not work with Arabic file name - any idea?

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro
View previous topic :: View next topic  
Author Message
Dellow



Joined: 11 Oct 2007
Posts: 26

PostPosted: Aug 19, 2009 8:55 am    Post subject: MP3 player does not work with Arabic file name - any idea? Reply with quote

Hello,

Flash MP3 pleyr does not work with Arabic file name.

I don't like to enable Sanitize filename option to replace all letters except a-z0-9-. with underline , because the file link will be like this :
Code:

http://site.com/0emst9y/___________________2_.mp3.html

Which i don't like.

So any one have idea for this issue ?
Back to top
View user's profile Send private message
ankurs



Joined: 10 Mar 2009
Posts: 608

PostPosted: Aug 19, 2009 11:59 am    Post subject: Reply with quote

flash doesn't support some special characters , you will have to sanitize it
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 2106
Location: UFO Lab

PostPosted: Aug 19, 2009 12:55 pm    Post subject: Reply with quote

Here goes quick hack: in index.cgi find this part part of code:
Code:
   if($c->{mp3_mod} && $file->{file_name}=~/\.mp3$/i && $file->{file_size}<1048576*10 && !$file->{message})
   {
      my $res = $ses->api($file->{srv_cgi_url},
                          {
                           op           => 'gen_link',
                           file_id      => $file->{file_real_id}||$file->{file_id},
                           file_code    => $file->{file_real},
                           file_name    => $file->{file_name},

and replace
Code:
$file->{file_name}

with
Code:
'song.mp3'
Back to top
View user's profile Send private message Visit poster's website
PilgrimX182



Joined: 22 Mar 2006
Posts: 2106
Location: UFO Lab

PostPosted: Aug 19, 2009 1:09 pm    Post subject: Reply with quote

Also do same replace in line
Code:
$file->{song_url} = "$file->{srv_htdocs_url}/$ddcode/$file->{file_name}";
Back to top
View user's profile Send private message Visit poster's website
Dellow



Joined: 11 Oct 2007
Posts: 26

PostPosted: Aug 22, 2009 8:32 am    Post subject: Reply with quote

WOW good idea.. i hope this resolve my and others problem.

but i made the modification that give , but seems not working for me. and even the file name uploaded as numbers.mp3.

i think still somthing missing...
Back to top
View user's profile Send private message
Dellow



Joined: 11 Oct 2007
Posts: 26

PostPosted: Aug 25, 2009 9:25 am    Post subject: Reply with quote

No chance to resolve this isseu ? Sad
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 2106
Location: UFO Lab

PostPosted: Aug 25, 2009 10:23 am    Post subject: Reply with quote

PM me FTP access, will do quickly.
Back to top
View user's profile Send private message Visit poster's website
Dellow



Joined: 11 Oct 2007
Posts: 26

PostPosted: Aug 26, 2009 12:49 pm    Post subject: Reply with quote

Great, Works thank you PilgrimX182...

This hack will be lost in next version and we will need it again unless you include it by default in next version.
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 2106
Location: UFO Lab

PostPosted: Aug 26, 2009 3:11 pm    Post subject: Reply with quote

Yea, already fixed it in upcoming version.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group