No Code Attached Yet
avatar PhilETaylor
PhilETaylor
9 May 2021

Steps to reproduce the issue

Attempt to upload a small zip file by drag and drop to the media manager

Expected result

A message that might tell me something about the reason for the "error occurring"

"I'm dreadfully sorry, we do not allow zip files to be uploaded because their extension is disallowed in the options - but you can go to options and change this"

"Oi you, dont be a fool! We are restricting uploads to only images because you dont have fileinfo/MIME magic installed. Install either, or disable Restrict Uploads in options"

"mime type failed check"

Actual result

Two ajax requests are fired. One is suspect and is to blob:http://127.0.0.1:4444/fe446368-63dd-4d7e-b290-f6f55953d564 and one is a POST to http://127.0.0.1:4444/administrator/index.php?option=com_media&format=json&task=api.files&path=local-0:/ which results in

{"success":false,"message":"","messages":null,"data":null}

and because it was not a success, and there was no message - Joomla gives this unhelpful generic message:

Screenshot 2021-05-09 at 14 47 29

System information (as much as possible)

Additional comments

avatar PhilETaylor PhilETaylor - open - 9 May 2021
avatar joomla-cms-bot joomla-cms-bot - change - 9 May 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 9 May 2021
avatar PhilETaylor PhilETaylor - change - 9 May 2021
The description was changed
avatar PhilETaylor PhilETaylor - edited - 9 May 2021
avatar PhilETaylor PhilETaylor - change - 26 Aug 2021
Title
[4][Media] Uploading zip/tar.gz files gives generic error message
[4][Media] Uploading zip/tar.gz/svg files gives generic error message
avatar PhilETaylor PhilETaylor - edited - 26 Aug 2021
avatar brianteeman
brianteeman - comment - 24 Feb 2022

From what I can tell all the code and strings exist in libraries\src\helpers\mediahelper.php but its never getting passed across to the javascript this component uses

avatar PhilETaylor PhilETaylor - change - 7 Mar 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-03-07 18:37:20
Closed_By PhilETaylor
Labels Added: No Code Attached Yet
Removed: ?
avatar PhilETaylor PhilETaylor - close - 7 Mar 2022

Add a Comment

Login with GitHub to post a comment