enhance(web): show attachment URL and UUID in dropzone preview - #39203
Merged
bircni merged 16 commits intoSep 5, 2026
Conversation
Show attachment URL and UUID on dropzone preview cards and linkify filenames and thumbnails to make cross-referencing with Markdown text easy. Resolves go-gitea#38802 Assisted-by: Antigravity:gemini-3.7-flash
wxiaoguang
reviewed
Sep 2, 2026
wxiaoguang
reviewed
Sep 2, 2026
wxiaoguang
reviewed
Sep 2, 2026
wxiaoguang
marked this pull request as draft
September 2, 2026 19:03
Assisted-by: Antigravity:gemini-3.8-flash
GrigorTonikyan
marked this pull request as ready for review
September 2, 2026 22:52
Contributor
wxiaoguang
approved these changes
Sep 4, 2026
# Conflicts: # templates/repo/issue/fields/textarea.tmpl # templates/repo/upload.tmpl
bircni
approved these changes
Sep 5, 2026
bircni
enabled auto-merge (squash)
September 5, 2026 08:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




When editing comments with multiple attachments, Dropzone preview cards only display filenames without identifying UUIDs or URLs, making it difficult to match cards to Markdown attachment tags when removing or rearranging files.
This change:
data-tooltip-contentwith the name and UUID on preview cards.Resolves #38802
Also fix the
isImageFileregression caused by #30513 which stopped the preview image from showing.