## Description
Make the logfile more user friendly by adding a readable upload result
string instead of just a number.
Before the logfile showed only a not human understandable number for the
upload result:
`"Uploaded xyz.jpg with result 3"`
This PR adds the key from the enum UPLOAD_RESULT to make it easy for a
human to understand the result:
`"Uploaded xyz.jpg with result 3 (BLOCKED)"`
The script I used for testing - 10-100x faster, and the faster the
longer the arrays. Note that speed was not the primary motivator for
this change, I just wanted to enable `noUncheckedIndexedAccess`
```js
//zs = [...Array(10).keys()].map(() => Uint8Array.from(Array(100000).keys()));
zs = [...Array(100).keys()].map(() => Uint8Array.from(Array(1000).keys()));
const m0 = (as) => new Uint8Array(as.reduce((acc, x) => acc.concat(...x), []));
const mergeUint8Arrays = (as) => {
const len = as.reduce((len, xs) => len + xs.length, 0);
const result = new Uint8Array(len);
as.reduce((n, xs) => (result.set(xs, n), n + xs.length), 0);
return result;
};
s = performance.now();
a = m0(zs);
e = performance.now();
console.log(e - s, "ms", a.length, "m0");
//console.log(a);
s = performance.now();
b = mergeUint8Arrays(zs);
e = performance.now();
console.log(e - s, "ms", b.length, "merge");
//console.log(b);
console.log(JSON.stringify(a) === JSON.stringify(b))
```
The code doesn't get tested or run and is likely not safe for 32 bits
> 941.0 pkg/utils/billing/billing.go:117:13: cannot use
ente.FreePlanStorage
(untyped int constant 5368709120) as int value in struct literal
(overflows)
>
>
https://github.com/ente-io/ente/actions/runs/9546167833/job/26308448952
The code doesn't get tested or run and is likely not safe for 32 bits
> 941.0 pkg/utils/billing/billing.go:117:13: cannot use ente.FreePlanStorage
(untyped int constant 5368709120) as int value in struct literal (overflows)
>
> https://github.com/ente-io/ente/actions/runs/9546167833/job/26308448952