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 for large files?

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



Joined: 01 Dec 2010
Posts: 48

PostPosted: Dec 02, 2010 5:21 pm    Post subject: mp3 player for large files? Reply with quote

Hi,

XFileSharing Pro is set a limit playback of mp3 files? For MP3 files ~ 10 MB player is available, for MP3 files ~ 18 MB player is not available. Why?
Back to top
View user's profile Send private message
blwire



Joined: 28 Aug 2009
Posts: 9

PostPosted: Dec 21, 2010 10:31 pm    Post subject: Reply with quote

bump. i've got the same bug. Can we modify something on our own installs to allow the mp3 mod to work for large mp3s?
Back to top
View user's profile Send private message
PilgrimX182



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

PostPosted: Dec 22, 2010 9:26 am    Post subject: Reply with quote

It's not the bug. It's special limit so bad user won't upload 1.3GB AVI renamed to .mp3, cause direct links for mp3 could be parsed from site without waiting or entering captcha.
To raise this limit edit index_dl.pm: find
Code:
if($c->{mp3_mod} && $file->{file_name}=~/\.mp3$/i && $file->{file_size}<1048576*15 && !$file->{message})

and change 15 to higher value.
Back to top
View user's profile Send private message Visit poster's website
blwire



Joined: 28 Aug 2009
Posts: 9

PostPosted: Dec 22, 2010 9:32 am    Post subject: Reply with quote

gotcha lol. what would we set the limit to to set the limit at 30mb mp3s?
Back to top
View user's profile Send private message
PilgrimX182



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

PostPosted: Dec 22, 2010 9:33 am    Post subject: Reply with quote

Obviously you should chnage line to
Code:
if($c->{mp3_mod} && $file->{file_name}=~/\.mp3$/i && $file->{file_size}<1048576*30 && !$file->{message})
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