We're looking at options to store our site's media (primarily images at this point) on some sort of cloud service. However, we'd like to get an idea of how much it might cost.
As part of this we need to get transfer (which wasn't enabled in IIS for logging, but now is) as well as the total amount of images we'd be storing on the server.
I've written a LINQ query against the database, but I'm wondering if there's a better way to handle this.
Checking the App_Data\MediaCache directory as the accepted answer to Sitecore Database and App_Data Size suggests shows a number of configuration and other documents in it as well, so might not be ideal.
Any suggestions? Thanks!
If all your media is stored in the db, you can get a pretty good approximation from looking at the Blobs table on your master database.
If you've got a mix, you'll have to look at that plus what ever location is configured on the
Media.FileFolderSitecore setting (this defaults to/App_Data/MediaFiles).