- Discussions
- 4 644
- Messages
- 12 049
- Solutions
- 81
- J'aime
- 7 606
- Points
- 198
Nécessite XF2.1 +, supprime la prise en charge de XF2.0
Correction "Appel à une fonction membre save () sur null" lors de la remise d'un fichier jpeg non valide
Correction du support des miniatures SVG pour XF2.1 (pour les nouvelles pièces jointes).
A collection of improvements to XF's attachment system.
Support for SVG attachments to be displayable as normal images.
Nginx X-Accel-Redirect (OPTIONAL)
Enables the use of Nginx's X-Accel-Redirect header feature for attachment serving.
This permits XenForo to-do validation and authentication, and offload the actual file serving to Nginx. This feature is not particularly well documented, but some info found here.
After following Using DigitalOcean Spaces or Amazon S3 for file storage in XF 2.x attachments no longer show, you must follow the relevant FAQ entry!
This addon assumes the /internal_data folder exists within the webroot, and you do not have a 'deny all;' statement but instead use 'internal;' to secure the internal_data folder.
For example, XenForo is accessible from: /forum rather than then the webroot.
The following must be added to config.php :
Something similar to the nginx config may be required in your webserver :
To ensure you match how XenForo serves files, add the following headers into your website config for the internal_data folder :
New Permissions
Permits per-forum or conversation attachment size and count limits.
Respects the global forum wide attachment size/count limits, with per-usergroup settings allowing smaller values.
Due to how XF integer permissions work, 'unlimited' or '0' evaluate as no permission being set.
Post Install Instructions
Add 'svg' file extension to the list of supported to allow svg files to be uploaded.
Contributing features or bug fixes
Please create a Github Pull request via the "More Information" link.
Contributions
If you appreciate this add-on, please consider a contribution via PayPal. Details will be provide via private conversation.
Please contact me if you wish for different licencing arrangements.
Télécharger 2.1.0 :
Version 2.2.0 - Feature update :
Fix XFMG support (ie content stored in data rather than internal_data)
Support for video stream via partial content requests
Add "Partial content maximum chunk size" option
Télécharger 2.2.0 :
Version 2.3.0 - Maintenance update
Installer now requires php 7+ & XenForo 2.1+
Add php7 type hinting
Add icon for options group
Force global namespace for functions which are known to be optimizable to bytecode in php
Improve extracting svg dimensions
Télécharger V2.3.0 :
Version 2.3.1 Bugfix update : Fix error when rebuilding thumbnails ("Return value must be of the type string, null returned")
Télécharger V2.3.1 :
Version 2.3.2 - Bugfix update : Fix attempting to extract svg dimensions from <svg viewData> attribute.
Télécharger V2.3.2 :
Version 2.4.0 :
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.
Télécharger V2.4.0 :
Version 2.5.0 - Security & Bugfix update :
- 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)
Télécharger V2.5.0 :
Version 2.6.0 - Feature update :
Version 2.6.1 :
Version 2.6.2 - Bugfix update : Fix javascript errors when dropping attachments onto the editor.
Télécharger V2.6.2 :
Version 2.6.3 - Bugfix update : Fix javascript error that could occur in the editor when a user can add attachments and does a drag&drop.
Télécharger V2.6.3 :
Version 2.6.4 - Bugfix update :
Version 2.6.5 - Bugfix update : Fix XF2.3 javascript error when using the "attach" button for non-svg images.
Télécharger V2.6.5 :
Version 2.6.6 - Bugfix update : Fix server error when partial content requests isn't actually possible with the underlying filesystem adaptor.
Télécharger V2.6.6 :
Version 2.6.7 - Bugfix update : Fix XFRM resource icon extension was being stripped on updating for non-svg files.
Télécharger V2.6.7 :
Correction "Appel à une fonction membre save () sur null" lors de la remise d'un fichier jpeg non valide
Correction du support des miniatures SVG pour XF2.1 (pour les nouvelles pièces jointes).
A collection of improvements to XF's attachment system.
- SVG support
- Nginx's X-Accel-Redirect
- New Permissions for forum/conversations (Respects global attachment size & count limits):
- Attachment Size (kb).
- Maximum Attachment Count.
Support for SVG attachments to be displayable as normal images.
Nginx X-Accel-Redirect (OPTIONAL)
Enables the use of Nginx's X-Accel-Redirect header feature for attachment serving.
This permits XenForo to-do validation and authentication, and offload the actual file serving to Nginx. This feature is not particularly well documented, but some info found here.
After following Using DigitalOcean Spaces or Amazon S3 for file storage in XF 2.x attachments no longer show, you must follow the relevant FAQ entry!
This addon assumes the /internal_data folder exists within the webroot, and you do not have a 'deny all;' statement but instead use 'internal;' to secure the internal_data folder.
For example, XenForo is accessible from: /forum rather than then the webroot.
The following must be added to config.php :
PHP:
$config['internalDataUrl'] = '/forum/internal_data';
Something similar to the nginx config may be required in your webserver :
PHP:
location ^~ /forum/internal_data {
internal;
add_header Etag $upstream_http_etag;
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
alias /path/to/internal_data;
}
To ensure you match how XenForo serves files, add the following headers into your website config for the internal_data folder :
PHP:
add_header Etag $upstream_http_etag;
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
New Permissions
Permits per-forum or conversation attachment size and count limits.
Respects the global forum wide attachment size/count limits, with per-usergroup settings allowing smaller values.
Due to how XF integer permissions work, 'unlimited' or '0' evaluate as no permission being set.
Post Install Instructions
Add 'svg' file extension to the list of supported to allow svg files to be uploaded.
Contributing features or bug fixes
Please create a Github Pull request via the "More Information" link.
Contributions
If you appreciate this add-on, please consider a contribution via PayPal. Details will be provide via private conversation.
Please contact me if you wish for different licencing arrangements.
Télécharger 2.1.0 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Fix XFMG support (ie content stored in data rather than internal_data)
Support for video stream via partial content requests
Add "Partial content maximum chunk size" option
Télécharger 2.2.0 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Installer now requires php 7+ & XenForo 2.1+
Add php7 type hinting
Add icon for options group
Force global namespace for functions which are known to be optimizable to bytecode in php
Improve extracting svg dimensions
Télécharger V2.3.0 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Télécharger V2.3.1 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Télécharger V2.3.2 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
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.
Télécharger V2.4.0 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
- 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)
Télécharger V2.5.0 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
- 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
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
- php 8.4+ compatibility
- XF2.3 compatbility
- Fix XFRM support when XFRM is installed after Attachment Improvements
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Télécharger V2.6.2 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Télécharger V2.6.3 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
- Fix edge case where thumbnails for an svg where not generated as expected
- Fix XF2.3 support
- Fix XFRM 2.3.x integration failing to save SVG icons.
- Prevent XF2.3 converting svg attachments/xfrm icons to webp when optimizing images
- Fix XF2.3 would convert an SVG to PNG client-side on submit
- Fix svg attachments not generating thumbnail URLs as expected for X2.3
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Télécharger V2.6.5 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Télécharger V2.6.6 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Télécharger V2.6.7 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.