We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When uploading a media item with a file extension that isn't allowed, a JSON parse error message is displayed instead of the the custom error text:
This is because the error message is not passed with the self keyword here:
self
scalar/system/application/libraries/File_Upload.php
Line 61 in a9165f1
Exception(self::FILE_NAME_NOT_ALLOWED);
The text was updated successfully, but these errors were encountered:
A pull request here, too, would be excellent, thanks @alexdryden !
Sorry, something went wrong.
No branches or pull requests
When uploading a media item with a file extension that isn't allowed, a JSON parse error message is displayed instead of the the custom error text:
This is because the error message is not passed with the
self
keyword here:scalar/system/application/libraries/File_Upload.php
Line 61 in a9165f1
It should be throw new
Exception(self::FILE_NAME_NOT_ALLOWED);
. I can submit a pr for this along with the other error message related issue.The text was updated successfully, but these errors were encountered: