@Aivaras ensure you've installed my (free) Standard Library add-on.
I've updated the add-on description to document it is required
I've updated the add-on description to document it is required
Yes, with the Standard Library add-on installed, the upgrade was successful. Thank you!@Aivaras ensure you've installed my (free) Standard Library add-on.
I've updated the add-on description to document it is required
option.svAttachmentsStripExif
, the phrase text says "Strip JEPG EXIF"what if we use external svgs? and and img atgs will it work then or not?It depends on the svg. Please ensure the svg-as-attachments is actually enabled as it was changed so it wasn't enabled by default.
/data
and /internal_data/attachments
.$config['internalDataUrl'] = function($externalPath, $canonical)
{
return 'internal_data_s3/https://xftest.ams3.digitaloceanspaces.com/internal_data/' . $externalPath;
};
location ~* /internal_data_s3/(.*?)://(.*?)/(.*) {
internal;
set $xfEtag $upstream_http_etag;
set $download_protocol $1;
set $download_host $2;
set $download_path $3;
set $download_url $download_protocol://$download_host/$download_path;
resolver 127.0.0.1 ipv6=off;
proxy_set_header Host $download_host;
proxy_set_header Authorization '';
proxy_set_header Cookie '';
proxy_max_temp_file_size 0;
proxy_intercept_errors on;
error_page 301 302 307 = @handle_redirect;
proxy_ssl_server_name on;
proxy_pass $download_url$is_args$args;
proxy_hide_header Content-Disposition;
proxy_hide_header Content-Type;
proxy_hide_header Etag;
proxy_hide_header x-amz-request-id;
add_header Etag $xfEtag;
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
}
location @handle_redirect {
resolver 127.0.0.1 ipv6=off;
set $saved_redirect_location '$upstream_http_location';
proxy_pass $saved_redirect_location;
}
This works fine with all of XF2.2 branch version.Anyone can confirm this works for 2.2.15?
I'm not sure when I'll have time to work on this for free, as I'm in the middle of some large project work. Can you open a ticket on my site if you are interested in funding this feature, I think it should be reasonably quick.@Xon
Installed this and find that it does not allow me to upload SVG as resource icon (my main objective in using this). It works fine upload svg to a post as attachment.
Oh, so close but so far.
Do you think you can extend it to work on resource icons?
DoneThis works fine with all of XF2.2 branch version.
I'm not sure when I'll have time to work on this for free, as I'm in the middle of some large project work. Can you open a ticket on my site if you are interested in funding this feature, I think it should be reasonably quick.
This addon is now available on https://atelieraphelion.com
- 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...
I ran into issues today trying to upload these images to my resource icons. When I tried to load the image after upload the icon, this is the errorXon updated Attachment Improvements By Xon with a new update entry:
2.6.0 - Feature update
Read the rest of this update entry...
- php 8.4+ compatibility
- XF2.3 compatbility
- Fix XFRM support when XFRM is installed after Attachment Improvements
We use essential cookies to make this site work, and optional cookies to enhance your experience.