Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4][Media] Uploading zip/tar.gz/svg files gives generic error message #33702

Closed
PhilETaylor opened this issue May 9, 2021 · 1 comment
Closed

Comments

@PhilETaylor
Copy link
Contributor

PhilETaylor commented May 9, 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

@PhilETaylor PhilETaylor changed the title [4][Media] Uploading zip/tar.gz files gives generic error message [4][Media] Uploading zip/tar.gz/svg files gives generic error message Aug 26, 2021
@brianteeman
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants