How do I calculate the content-length of a file upload in ruby?
Posted
by Angela
on Stack Overflow
See other posts from Stack Overflow
or by Angela
Published on 2010-05-23T07:00:49Z
Indexed on
2010/05/23
7:10 UTC
Read the original article
Hit count: 169
content-length
I need to include the content-length of a image /png file posted in an upload to a webservice.
But how do I calculate the content-length to include in the header?
Thanks.
© Stack Overflow or respective owner