Quote:
Originally Posted by Arjan
It says
So I expect to have to enter 15 if I want 15 MB.
Still it is buggy.
When I enter a value up to 15 I get the message "download exceeded" right away.
With values 20 and up (and I'm really sure about 50 and up) its counting MB's allright.
|
I've you want to PM me your site URL along with an admin username and password, I'll check it out. I can't figure out any way that our code would have some magic switch at 15. It's pretty straightforward:
PHP Code:
$dlremaining = ($permissions['ecdownloadsmaxdailydl'] * 1048576) - ($tempmax1['dlamount'] + $tempnew['size']);
where -
- $permissions['ecdownloadsmaxdailydl'] is the number entered as the max daily download amount
- $tempmax1['dlamount'] - is the number of bytes downloaded in the last twenty four hours and
- $tempnew['size'] is the size of the file the user is attempting to download.
Anyway, PM me and I'll check it out.
Also, what is the size of the file you are trying to download?