[D9] Error : TYPO3\PharStreamWrapper\Exception: Unexpected file extension filename.tar.gz

Created on 23 November 2022, almost 2 years ago
Updated 13 September 2023, about 1 year ago

Problem/Motivation

After uploading a .tar.gz extension file for bulk upload, it is showing the below error:
Error: Call to a member function extractTo() on null in Drupal\pack_upload\Form\UploadForm->submitForm() (line 125 of /app/modules/contrib/pack_upload/src/Form/UploadForm.php)

After going inside the code, I found the actual error is :
TYPO3\PharStreamWrapper\Exception: Unexpected file extension in "phar:///app/sites/default/files/Folder7/test_filename.tar.gz/" in Drupal\Core\Security\PharExtensionInterceptor->assert() (line 44 of /app/core/lib/Drupal/Core/Security/PharExtensionInterceptor.php).
It is working as expected for .zip file types.

🐛 Bug report
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

🇮🇳India mitthukumawat

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024