Page 1 of 2
Wrong file size with large files
Posted: 02 Jul 2014, 21:44
by jurgen0
I have large download files on my website >2GB. Phoca Download shows the size of these files as -1673530073 B and -820058793 B. Smaller files are shown as 2.85 MB and 1 MB. Looks like Phoca Download doesn't support GB-files?
Re: Wrong file size with large files
Posted: 04 Jul 2014, 23:27
by Jan
Hi, which version of Phoca Download you are using?
There should not by any problem with GB?
Code: Select all
if ($onlyMB) {
$sizes = array('B', 'kB', 'MB');
} else {
$sizes = array('B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB');
}
Jan
Re: Wrong file size with large files
Posted: 17 Jul 2014, 20:01
by jurgen0
Phoca Download 3.0.5
Joomla 3.3.1
Re: Wrong file size with large files
Posted: 19 Jul 2014, 00:52
by Jan
Hi, I will take a look at it and will do some tests. Where exactly are such items displayed (in which view), so I can test it.
Thank you, Jan
Re: Wrong file size with large files
Posted: 19 Jul 2014, 14:15
by jurgen0
See screenshot. Real file size: 2.193.196.900
Re: Wrong file size with large files
Posted: 20 Jul 2014, 00:29
by Jan
Hi, thank you for the screenshot. But not sure which view this is - is this File View in frontend?
Jan
Re: Wrong file size with large files
Posted: 20 Jul 2014, 13:52
by jurgen0
Yes it is.
Re: Wrong file size with large files
Posted: 21 Jul 2014, 23:31
by Jan
Hi, confirmed, seems like there is some problem with the function of filesize.
I will take a look at it and let you know. Thank you for the info.
Jan
Re: Wrong file size with large files
Posted: 21 Jul 2014, 23:45
by Jan
Now checking, the problem occurs in php function filesize. I will take a look at it and will try to discover if there is no other way to find the filesize than using the standard function "filesize" for this
seems like this is a common issue
http://stackoverflow.com/questions/5188 ... 2gb-in-php
Testing the different guides, but get no right value for files which are larger than 2GB
Jan
Re: Wrong file size with large files
Posted: 29 Jul 2014, 14:15
by jurgen0
So? No sollution?