Upload class: file_size for content-length - 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 class: file_size for content-length (/showthread.php?tid=22830) |
Upload class: file_size for content-length - El Forum - 09-21-2009 [eluser]Maximilian Schoening[/eluser] Hi, I am trying to set the following header information: Code: header('Content-Length: ' . $upload['filesize']); I store the filesize through the upload return (which is in KB) $upload['file_size']. So I would get something like 22.2 stored in the database. How can I turn this into a value I can use for content-length? Thanks, Max |