Menu

#4 Bad file size when file is more than 2GB

open
nobody
5
2011-03-08
2011-03-08
Anonymous
No

File size is displayed with "-" negative symbol when dir or file is larger than 2GB

Discussion

  • Nobody/Anonymous

    Wrong file size displayed

     
  • daceige

    daceige - 2011-10-06

    Inside functions.php:

    Look for line 35: $file_size = filesize($item_path);
    Add the following on the line under it.
    if ( $file_size < 0 ) $file_size = $file_size - $file_size - $file_size;

     

Log in to post a comment.