Best way to get image/file size?

Last post 03-02-2005 11:57 AM by thecrispy1. 1 replies.

Sort Posts:

  • Best way to get image/file size?

    03-02-2005, 11:48 AM
    • Member
      60 point Member
    • MoodyBlue
    • Member since 01-25-2005, 9:53 AM
    • Croatia
    • Posts 12
    Hi all,
    please does anyone have experience with this issue: i would like to implement a functionality that tests the sizes of the files (files that user wants to download from portal, or file that is uploaded into portal - generally, user files in the portal, and general idea is to keep the upload/download possible, just to prompt the user that certain file is 'that big') - where and when to make this? Through the skin, and how, or directly in module's edit control (for example image gallery)?
    What do you think...
    I appologise if this was not the smartest thing to ask :-}
    Thanks, Marija Berac



    NETMedia presents: nukedArea



  • Re: Best way to get image/file size?

    03-02-2005, 11:57 AM
    • Star
      12,167 point Star
    • thecrispy1
    • Member since 06-24-2002, 9:06 AM
    • USA
    • Posts 2,434
    • TrustedFriends-MVPs
    You can use the System.IO class but in 3.x you have to be careful with Medium trust issues. I would look at how the DNN File Manager deals with this for guidance.
    Chris Paterra


Page 1 of 1 (2 items)