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.
XFileSharing Pro - FILE PREVIEW NOT WORKING
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
I guess you're using 1.5 version.
Here goes fix for it: in index.cgi replace
with
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}";
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";
-
- Posts: 17
- Joined: Oct 15, 2009 6:17 am
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
-
- Posts: 17
- Joined: Oct 15, 2009 6:17 am
-
- Posts: 17
- Joined: Oct 15, 2009 6:17 am
-
- Posts: 17
- Joined: Oct 15, 2009 6:17 am
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
hopefully a fix is here soon