XFileSharing Pro - FILE PREVIEW NOT WORKING

Message
Author
lavahiphop
Posts: 17
Joined: Oct 15, 2009 6:17 am

FILE PREVIEW NOT WORKING

#1 Postby lavahiphop » Nov 30, 2009 1:21 pm

hello,

is there a way i can have all the mp3 files play without doing the sanitize setting? For example, this file doesn't work:

http://hulkshare.com/atzs6cue1jpi

but it works when i sanitize it. the bad thing is it puts that underslash every where and it is really annoying for my users. They just wanna upload the file with the name as is. Maybe I can get a fix for this. Thanks.

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Nov 30, 2009 2:27 pm

I guess you're using 1.5 version.
Here goes fix for it: in index.cgi replace

Code: Select all

      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},
                           fs_key       => $file->{srv_key},
                           ip           => $ses->getIP });
      my ($ddcode) = $res=~/^OK:(.+)$/;
      $file->{song_url} = "$file->{srv_htdocs_url}/$ddcode/$file->{file_name}";
with

Code: Select all

      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    => '111.mp3',
                           fs_key       => $file->{srv_key},
                           ip           => $ses->getIP });
      my ($ddcode) = $res=~/^OK:(.+)$/;
      $file->{song_url} = "$file->{srv_htdocs_url}/$ddcode/111.mp3";

cuty
Posts: 103
Joined: Apr 14, 2009 11:20 pm

#3 Postby cuty » Nov 30, 2009 7:03 pm

doesnt work for 1.3, what should I do?

lavahiphop
Posts: 17
Joined: Oct 15, 2009 6:17 am

#4 Postby lavahiphop » Nov 30, 2009 9:16 pm

great, so i did this. it appeared to work fine. went to class for a few hours. and came back to find that when someone tried to download a file, it would say "file not found". Had to change the code back. Probably lost my biggest customer. What do I need to do in order to make this work for real this time. thanks

lavahiphop
Posts: 17
Joined: Oct 15, 2009 6:17 am

#5 Postby lavahiphop » Nov 30, 2009 10:57 pm

also to the those who help out, admin, pilgrim; is there a way we can chat instant messenger ASAP? I have several questions and concerns for my site and time is not on my side. I will pay your for your time. Thanks

lavahiphop
Posts: 17
Joined: Oct 15, 2009 6:17 am

#6 Postby lavahiphop » Dec 01, 2009 2:10 pm

i got in contact with you over yahoo chat, and you said to email the problem, which I did. thanks

cuty
Posts: 103
Joined: Apr 14, 2009 11:20 pm

#7 Postby cuty » Dec 01, 2009 4:47 pm

whats the fix?? I need this too , when I dont click sanitize, the mp3's dont play.

lavahiphop
Posts: 17
Joined: Oct 15, 2009 6:17 am

#8 Postby lavahiphop » Dec 01, 2009 5:39 pm

hey cuty, could you email me at [email protected]? I want to ask you a question. (i guess pm thing doesn't work). thanks.

hopefully a fix is here soon