Hello
@JulianD &
@Seeker-Smith
I managed to get the add-on working again. At least, I manage to have sliced resources in the chunked_upload folder again. I'm currently running further tests.
Here's what I found, template modifications were no longer applied (
Appearance > Template modification).
_data/template_modifications.xml
Origin :
XML:
<modification type="public" template="helper_attach_upload" modification_key="chunkedUploads_helper_attach_upload" description="Loads the Chunked Uploads javascript file" execution_order="10" enabled="1" action="preg_replace">
<find><![CDATA[#<xf:js prod="xf\/attachment_manager-compiled.js"[^>]*?\/>#i]]></find>
<replace><![CDATA[$0
<xf:js src="ChunkedUploads/xf/attachment_manager.js" min="1" addon="ChunkedUploads" />]]></replace>
</modification>
<modification type="public" template="xfmg_media_add_macros" modification_key="chunkedUploads_xfmg_media_add_macros" description="Loads the Chunked Uploads javascript file in the XFMG addon" execution_order="10" enabled="1" action="preg_replace">
<find><![CDATA[#<xf:js prod="xf\/attachment_manager-compiled.js"[^>]*?\/>#i]]></find>
<replace><![CDATA[$0<xf:js src="ChunkedUploads/xf/attachment_manager.js" min="1" addon="ChunkedUploads" />]]></replace>
</modification>
New :
XML:
<modification type="public" template="helper_attach_upload" modification_key="chunkedUploads_helper_attach_upload" description="Loads the Chunked Uploads javascript file" execution_order="10" enabled="1" action="preg_replace">
<find><![CDATA[#<xf:js prod="vendor/exif-reader/exif-reader.js, xf/attachment_manager-compiled.js"[^>]*?\/>#i]]></find>
<replace><![CDATA[$0
<xf:js src="vendor/exif-reader/exif-reader.js, ChunkedUploads/xf/attachment_manager.js" min="1" addon="ChunkedUploads" />]]></replace>
</modification>
<modification type="public" template="xfmg_media_add_macros" modification_key="chunkedUploads_xfmg_media_add_macros" description="Loads the Chunked Uploads javascript file in the XFMG addon" execution_order="10" enabled="1" action="preg_replace">
<find><![CDATA[#<xf:js prod="vendor/exif-reader/exif-reader.js, xf/attachment_manager-compiled.js"[^>]*?\/>#i]]></find>
<replace><![CDATA[$0
<xf:js src="vendor/exif-reader/exif-reader.js, ChunkedUploads/xf/attachment_manager.js" min="1" addon="ChunkedUploads" />]]></replace>
</modification>
I don't know if xenforo 2.3.4 has changed its
helper_attach_upload and
xfmg_media_add_macros templates, but they now include exif-reader.js. As a result, the template modification regex was no longer functional.
Can you
@JulianD verify these results and keep us informed ?
After a few tests, I can't upload more than a 1.5 GB file. For a 2GB file, the upload completes without error, then when I click on download from XFRM, the following error message appears in a new page :
An error occurred while processing your request (There is an HTTP 403 (Forbidden) error).
Thank you in advance for your help.