#Twilio OA

1 messages · Page 1 of 1 (latest)

snow willow
#

Yes, I got the same today.

buoyant crane
snow willow
#

First of all split the number and the unit

#

And once you find the unit . Convert that unit to bytes

#

And then for incoming url check if the size is within the max size that you calculated

buoyant crane
#

yep, thats exactly what i did

#

i used switch case for the units

#

but i didnt pass some test cases, cuz the url was element 0 and then +2 and the imageSize was element 1 and + 2 but instead i got it so the image url and imagesize was in the same element of the array?