Skip to content

feat: ensure unique file names for attachments#129

Merged
jpnurmi merged 8 commits intogetsentry:getsentryfrom
jpnurmi:feat/attach-unique
Jun 22, 2025
Merged

feat: ensure unique file names for attachments#129
jpnurmi merged 8 commits intogetsentry:getsentryfrom
jpnurmi:feat/attach-unique

Conversation

@jpnurmi
Copy link
Copy Markdown
Collaborator

@jpnurmi jpnurmi commented Jun 18, 2025

Helps to avoid conflicts between non-uniquely named byte attachments. If the specified attachment, such as "screenshot.png" or "data.tar.gz", already exists when preparing a crash report, it becomes "screenshot-1.png" or "data-1.tar.gz", respectively. The number suffix is incremented until an available name is found.

See also:

@jpnurmi

This comment was marked as outdated.

@jpnurmi jpnurmi marked this pull request as draft June 18, 2025 15:13
@jpnurmi jpnurmi marked this pull request as draft June 18, 2025 15:13
@jpnurmi jpnurmi marked this pull request as draft June 18, 2025 15:13
@jpnurmi jpnurmi marked this pull request as draft June 18, 2025 15:13
@jpnurmi jpnurmi closed this Jun 18, 2025
@jpnurmi jpnurmi reopened this Jun 20, 2025
@jpnurmi jpnurmi marked this pull request as ready for review June 20, 2025 07:50
@jpnurmi jpnurmi requested a review from supervacuus June 20, 2025 08:16
@jpnurmi jpnurmi merged commit e24b0f9 into getsentry:getsentry Jun 22, 2025
16 checks passed
@jpnurmi jpnurmi deleted the feat/attach-unique branch June 22, 2025 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants