-
Hi, I'm using the user feedback API with my own custom UI for capturing the feedback and I enabled uploading the screenshot, however I would know the maximum size of the screenshot file ( image ) to handle it: const handleFileChange = (event: SyntheticEvent<HTMLInputElement>, onChange: (value: Uint8Array) => void) => {
const { files } = event.currentTarget
// I want to check the file size
if (files && files.length > 0) {
const reader = new FileReader()
reader.onloadend = async () => {
const buffer = await files[0].arrayBuffer()
const data = new Uint8Array(buffer)
if (data) {
onChange(data)
}
}
reader.readAsDataURL(files[0])
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @alamenai Thanks for trying out our User Feedback API! Screenshots added to feedback messages are treated and stored as event Attachments, and so the same limits apply. Each screenshot will consume from the overall attachment quota depending on your plan (or, if you're self-hosting, they'll be saved into the same storage device). The size limits for different envelope items are listed here: https://develop.sentry.dev/sdk/envelopes/#size-limits For Attachments the maximums are:
|
Beta Was this translation helpful? Give feedback.
Hi @alamenai
Thanks for trying out our User Feedback API! Screenshots added to feedback messages are treated and stored as event Attachments, and so the same limits apply. Each screenshot will consume from the overall attachment quota depending on your plan (or, if you're self-hosting, they'll be saved into the same storage device).
The size limits for different envelope items are listed here: https://develop.sentry.dev/sdk/envelopes/#size-limits
For Attachments the maximums are: