Skip to content

Forum Attachment Support#1227

Merged
dfsm merged 16 commits intomainfrom
attachments
Apr 5, 2026
Merged

Forum Attachment Support#1227
dfsm merged 16 commits intomainfrom
attachments

Conversation

@dfsm
Copy link
Copy Markdown
Contributor

@dfsm dfsm commented Nov 15, 2025

  • New option added "Forum Attachment".
  • Menu Tree updated to handle new option.
    Now [img] will prompt:
    a) (If clipboard not empty) Paste URL
    b) From Library (from Camera has been removed)
    If From Library is selected, user can select their image. Once selected, another pair of options is presented:
    a) Image Host (if imgurUploadsEnabled)
    b) Forum Attachment
  • If image is too large (dimensions or filesize) (likely!) then option to Resize & Continue is presented. User can cancel out of resize to meet reqs.
  • Preview card UI element appears during resizing and also to display attachment thumbnail, dimensions and filesize in newreply view
  • Preview card with Keep or Delete segmented options present when editing a post with an attachment
  • Fixed existing issue where attachments would not render in posts. Had to download these with authentication and then display them in the posts after the html renders

I have pushed this through Claude 13 times for refactoring passes. This ought to be squeaky clean!!!

dfsm added 13 commits November 10, 2025 20:48
- New option added "Forum Attachment".
- Menu Tree updated to handle new option.
Now [img] will prompt:
a) (If clipboard not empty) Paste URL
b) From Library (from Camera has been removed)
If From Library is selected, user can select their image. Once selected, another pair of options is presented:
a) Image Host (if imgurUploadsEnabled)
b) Forum Attachment
- If image is too large (dimensions or filesize) (likely!) then option to Resize & Continue is presented. User can cancel out of resize to meet reqs.
- Preview card UI element appears during resizing and also to display attachment thumbnail, dimensions and filesize in newreply view
- Preview card with Keep or Delete segmented options present when editing a post with an attachment
- Fixed existing issue where attachments would not render in posts. Had to download these with authentication and then display them in the posts after the html renders
@dfsm dfsm requested a review from nolanw November 15, 2025 05:46
dfsm added 3 commits March 28, 2026 10:28
…updated to follow.

Support adding, replacing, and deleting attachments when editing posts.
Adapts to forum changes that expanded edit capabilities: attachments can now be added to posts that didn't have them, and existing attachments can be replaced. The "Forum Attachment" option in the composition menu now appears for edits when the server supports it, gated by parsing the edit form for attachment controls. Also fixes attachment image display in posts by extracting attachmentid directly from img URLs instead of the nonexistent postid parameter, and fetches images in a single request instead of two.
Disables the submit button while attachments are resizing.
@dfsm dfsm merged commit ac92fa9 into main Apr 5, 2026
1 check failed
@dfsm dfsm deleted the attachments branch April 5, 2026 22:15
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.

1 participant