Determine byte size of to be synced offline objects

Hi all,   For an offline app we want to be able to show to the user how much data needs to be synced. Since the biggest share of data are images and documents, we want to show the amount of images/documents and their total size (in megabytes). This can give the user an idea of what connectivity is needed and how long it could possibly take. Sadly, an unsynced file doesn’t have the size attribute filled. Well, it is filled with -1. I also checked in the webSQL database in the Chrome browser and also there I am seeing the -1 size before it is synced. The first two images are synced, the third one (row id 5, ‘Mendix.png’) isn’t.   Does anybody have a good solution on how to get the total size in MB of all unsynced images/files?
0 answers