Upload Library Returns Wrong File Size for Excel Documents - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Upload Library Returns Wrong File Size for Excel Documents (/showthread.php?tid=52889) |
Upload Library Returns Wrong File Size for Excel Documents - El Forum - 07-01-2012 [eluser]Unknown[/eluser] I have been working with the upload library for sometime now it works OK. I have however run into an issue when using the latest CI version 2.1.1 where if I upload excel documents, the file sizes are 1000 times greater than they should. I have uploaded images and word documents and the filesizes are OK in KBs while if I upload Excel documents (.xls application/vnd.ms-excel) its like the file size is not converted to KB so my application is showing the wrong file sizes. I am creating a web application and charging depending on disk usage so this would be a big issue. |