Is there a way to limit a certain type file size for premium users only?
In the settings I've set free users file upload limit to 500mb. But premium users can upload 2GB files. But I tested this by uploading a 2GB file and the free users were still able to download it.
How can I limit this?
Thanks
XFileSharing Pro - Limited 500mb files and above for premium user download only
-
- Posts: 51
- Joined: Apr 07, 2009 7:24 pm
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
In index.cgi find this line
and add below:
Code: Select all
$ses->PrintTemplate("download1.html") unless $file;
Code: Select all
$ses->message("Register premium account to download big files") if $file->{file_size} > $c->{max_upload_filesize}*1024*1024;