Attachment Improvements By Xon

Attachment Improvements By Xon 2.6.7

No permission to download
Fix XFRM resource icon extension was being stripped on updating for non-svg files
  • Fix server error when partial content requests isn't actually possible with the underlying filesystem adaptor
Fix XF2.3 javascript error when using the "attach" button for non-svg images
Fix javascript error that could occur in the editor when a user can add attachments and does a drag&drop
  • Fix javascript errors when dropping attachments onto the editor
  • php 8.4+ compatibility
  • XF2.3 compatbility
  • Fix XFRM support when XFRM is installed after Attachment Improvements
Require StandardLib v1.18.0+
Fix typo 'Strip JPEG EXIF' option text
Fix "Allow inline display of SVG image attachments" option was not actually wired up as expected
Improve resizing of SVGs to avoid unexpected truncation
Improve handling of SVGs which might have been rejected due to formatting
Add "Only admins can upload SVGs as images" option
Add SVG support for XFRM icons
  • Only support range-requests for local files, not remote filesystems as the underlying library does not support determining if this is suppotred.
  • Ensure attachments SVGs are only served as images if it is known to be valid, and inline display of SVGs is permitted.
  • Remove non-implemented "Allowed Image Attachment File Extensions" option
  • Add "Allow inline display of SVG image attachments" option, defaults to off (breaking change)
  • Require XenForo 2.2+
  • Require php 7.2+
  • Improve drag&drop editor support. Thanks to @NamePros for sponsoring this feature.
    • Stock XenForo/Froala uses "move" which can result in unexpected content deletion.
    • Tint the active editor's boarder when dragging items over it, and show a file upload symbol over it.
  • Fix attempting to extract svg dimensions from <svg viewData> attribute
Top