• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upload class: file_size for content-length

#1
[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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.