if you store the file-size as metadata it would be matter of a 

select sum(filesize) from thattable group by user

if you choose not to do it (which I don't recommend), you'd have to 
retrieve the file for each user and sum the calculated size.

On Tuesday, January 12, 2016 at 7:38:24 PM UTC+1, Alex Glaros wrote:
>
> what is easiest way to calculate total user uploaded data size so I can 
> bill them for storage individually?
>
> each user will have multiple files loaded at different times.  They will 
> be billed each month.
>
> thanks
>
> Alex Glaros
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to