m8,
Did clean install but now i download a html file if i say download???
i can make e download link in my qnap nas for the files then all the download are 100%. 10 gb to 50 gb.
Is there a option to but the donwnload link in quicksell? now you need to have the file in the upload folder.
or
Can this be the solution, but where do i put the code?
php.net/manual/fr/function.filesize.php
<?php
/**
* Get the size of file, platform- and architecture-independant.
* This function supports 32bit and 64bit architectures and works fith large files > 2 GB
* The return value type depends on platform/architecture: (float) when PHP_INT_SIZE < 8 or (int) otherwise
* @param resource $fp
* @return mixed (int|float) File size on success or (bool) FALSE on error
*/
function my_filesize($fp) {
$return = false;
if (is_resource($fp)) {
if (PHP_INT_SIZE < 8) {
// 32bit
if (0 === fseek($fp, 0, SEEK_END)) {
$return = 0.0;
$step = 0x7FFFFFFF;
while ($step > 0) {
if (0 === fseek($fp, - $step, SEEK_CUR)) {
$return += floatval($step);
} else {
$step >>= 1;
}
}
}
} elseif (0 === fseek($fp, 0, SEEK_END)) {
// 64bit
$return = ftell($fp);
}
}
return $return;
}
?>