Commit 4eda1c4
committed
fix(mobile/uploads): read picked image as bytes
RN's fetch(file://).blob() can come back as size 0 on Android,
making the PUT succeed but storing an empty object — which
looks to the user like "upload worked but the photo won't
load." Switch to arrayBuffer + Uint8Array for a reliable body.
Keep a temporary size / status log to confirm in Metro.1 parent acc69c5 commit 4eda1c4
1 file changed
Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
56 | 72 | | |
57 | 73 | | |
58 | 74 | | |
59 | 75 | | |
60 | | - | |
| 76 | + | |
61 | 77 | | |
62 | 78 | | |
| 79 | + | |
| 80 | + | |
63 | 81 | | |
64 | 82 | | |
65 | 83 | | |
| |||
0 commit comments