User tests: Successful: Unsuccessful:
Pull Request for Issue #16238
In some broken hosting envoirments both mime checker tools are not enabled. In that case show that message with more extended info.
Try this on a broken hosting.
confirm the extended message
review the text.
Extended text explaining what is happening
Just a general message which is not longer match the usage.
None
Status | New | ⇒ | Pending |
Category | ⇒ | Administration Language & Strings |
I'm happy to accept a better suggestion. Maybe we show a different message in frontend and backend?
yes if possible to have a different message on the frontend that would be better
also please change him to them to make it gender neutral.
I will wait to here if the message can be split before commenting on the text itself
The error message needs to be somewhat vague as to the cause of the issue still (the user just needs to know the upload failed, not everyone needs to know the technical reasoning for the failure), but we should be making it possible for site owners to get more information about why the issue happened. Long and short, we need to start making more liberal use of our logging system and stop expecting that the only way to get information about an error state is through messages displayed to the user in the alert container.
So a message displayed in the UI should basically say not much more than "could not upload file because the MIME type could not be determined". A supplemental JLog::add()
call should be used to log additional details (upload of X file failed because the MIME type could not be determined).
I will wait to here if the message can be split
Yes it can as we have different language files for backend and frontend.
first attempt
+JLIB_MEDIA_ERROR_WARNINVALID_MIME="We were unable to upload this file."
+JLIB_MEDIA_ERROR_WARNINVALID_MIME="We could not detect the mime type for this file. For security purposes this file has not been uploaded. Please contact your host and to check that mime_content_type or the fileinfo extension is enabled in php."
Labels |
Added:
?
?
|
done with the last commit.
I prefer not to not use We were
and We could
since we don't use We
in the other strings.
How about?
Unable to upload this file.
Unable to detect mime type for this file. For security purposes have not uploaded this file. Please contact your host and to check that mime_content_type or the fileinfo extension is enabled in PHP.
i was trying to be more friendly - but if not then
Unable to upload this file.
Unable to detect the mime type for this file. For security purposes this file has not been uploaded . Please contact your host and check that the mime_content_type or the fileinfo extension is enabled in PHP.
pushed thanks
i was trying to be more friendly - but if not then
I totally understand. Just going for consistency sake.
How about removing this file
from the 1st sentence since it is mentioned (redundant) in the second sentence?
Unable to detect the mime type. For security purposes this file has not been uploaded. Please contact your host and check that the mime_content_type or the fileinfo extension is enabled in PHP.
Fine by me
I have tested this item
on review
just had a thought and running for a train so cant test BUT is this message also displayed when you are trying to upload an file that is not in the allowed mime types that are saved in the com-media options? If so then this new message is not correct
No than we have a differnent message that also include the detected mime type.
This message is only displayed if we could not detect a mimetype and this means that both methos are not enabled.
ok all good then
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC after two successful tests.
I am still going to be insistent that the UI does not use an error message that says "you need X PHP extension/function enabled". That comment is only beneficial if the only user who may see it is the site owner or can manage their server configuration.
Depending on how you have the plugin configured or your site's ACL, yes, it could be a different group.
Status | Ready to Commit | ⇒ | Needs Review |
Labels |
seems to me not really discussed how it should be, state set to "needs review"
Labels |
I'm closing here as it looks like we can not find a consense here. Thanks.
Status | Needs Review | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-08-13 14:12:43 |
Closed_By | ⇒ | zero-24 |
This needs to be crafted carefully. This message might be appropriate for the site owner who would be the primary POC regarding server configurations, but for a general user of the site this is too much information (they shouldn't be seeing a message saying "this server is incorrectly configured" basically, and that's what this message says).