Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Michiel 30 posts 61 karma points
    Feb 27, 2012 @ 15:56
    Michiel
    0

    Bytes to MB

    I've got a download page in my umbraco project where I retrieve the umbracoBytes property.

    But there must be an easy way to convert those to MB's. But I can't find any.

    Hope someone can help.

    ( http://mas.bluebased.nl/download.aspx )

  • MrFlo 148 posts 390 karma points
    Apr 14, 2015 @ 22:10
    MrFlo
    0

    Hello,

    This is a old question but it's the first that comes up on Google. 

    So here is the answer : 

    @((media.umbracoBytes / 1048576M).ToString("0.00")) Mb

Please Sign in or register to post replies

Write your reply to:

Draft