gentle-policeman-89141
05/24/2025, 12:35 PM{
"key": "image.jpg",
"size": 74538,
"accessPolicies": [
"public_content"
],
"index": false,
"tags": {
"source": "integration",
"integrationName": "webchat"
},
"expiresAt": "2025-06-23T12:09:05.601Z"
}
Impact: Users cannot add more than one camera shot per message; the second capture always overwrites the first.
Workarounds Attempted:
1) Client-side buffering via DataTransfer and synthetic change events - didn’t fix it, because (i think) the collision happens server-side.
2) Renaming File.name in the DOM - didn’t work, as the API still received image.jpg.
3) Monkey-patching fetch/XHR to intercept and rewrite body.key before upload - didn’t work either, likely because Webchat issues its upload from within an iframe or ServiceWorker, so parent-page patches never see the real /files call.
See attached screenshots showing two consecutive captures (from Take Photo or Video) both labeled image.jpg, resulting in identical S3 keys, identical file IDs and, overwriting the previous image in the buffer
hope someone can help 🙂
Thanks!
https://cdn.discordapp.com/attachments/1375814431413502002/1375814431933726740/IMG_0114.jpg?ex=68330e89&is=6831bd09&hm=7900ccda2b6034c53b0e6a4865898d04894b3e6d1b9ad54af422e80b2a3b5a33&
https://cdn.discordapp.com/attachments/1375814431413502002/1375814432806146058/IMG_0115.jpg?ex=68330e8a&is=6831bd0a&hm=e2ac113e95da7694197f98c5a201ea4aef44a22ebd0cdb22f454b32ed58c5e61&prehistoric-airplane-85682
05/26/2025, 8:54 PMgentle-policeman-89141
05/27/2025, 12:03 PMgentle-policeman-89141
05/27/2025, 12:04 PMgentle-policeman-89141
05/27/2025, 12:05 PMgentle-policeman-89141
05/27/2025, 12:14 PMprehistoric-airplane-85682
05/27/2025, 1:27 PMgentle-policeman-89141
05/27/2025, 2:07 PMprehistoric-airplane-85682
05/27/2025, 3:14 PM