I have an image upload page where I show the images before upload. I use an expression to show the Mb of each image and then another expression which shows the total Mb’s of all the images. It shows correctly on PC and Android but Totals expression doesn’t work on the iPad. Can anyone give me a clue as to why this might be?
The expressions are…
{{((size / 1024)/ 1024).round(3)}} Mb
Total {{(image.files.sum(‘size’) / 1048576).round(2)}} Mb
That worked well @George, just as a side note I am getting a ‘violation’ warning in Chrome on Windows 10 when I first select images, do you know why this might be? And is it something I should be concerned about?
It is nothing to be concerned about. The Violation message happens when an event handler requires too much time to execute and would block other JavaScript from execution. In your case there is a function that took 166ms to execute, you probably won’t notice that.