Skip to content

Show correct message when uploaded file is too large#27730

Merged
rdeutz merged 7 commits intojoomla:stagingfrom
SharkyKZ:j3/media-upload
Feb 3, 2020
Merged

Show correct message when uploaded file is too large#27730
rdeutz merged 7 commits intojoomla:stagingfrom
SharkyKZ:j3/media-upload

Conversation

@SharkyKZ
Copy link
Copy Markdown
Contributor

Pull Request for Issue #27717.

Summary of Changes

Corrects error message when uploading too large files in com_media.

Testing Instructions

  1. Try to upload files larger than your system allows.
  2. Try to upload unsafe files (e.g. PHP files).
  3. Try to upload small and safe files (e.g. images).

Expected result

  1. Upload fails with message: Total size of upload exceeds the limit.
  2. Upload fails with message: You have tried to upload file(s) that are not safe.
  3. File is uploaded successfully.

Actual result

  1. Upload fails with message: You have tried to upload file(s) that are not safe.
  2. Upload fails with message: You have tried to upload file(s) that are not safe.
  3. File is uploaded successfully.

Documentation Changes Required

No.

@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators PR-staging and removed Language Change This is for Translators labels Jan 30, 2020
@richard67
Copy link
Copy Markdown
Member

richard67 commented Jan 30, 2020

@SharkyKZ With this PR applied and trying to upload a PHP file I get "Please input a file to upload." and not "You have tried to upload file(s) that are not safe." liike your instructions say. Before applying your PR it was like descibed in your instructions.

@joomla-cms-bot joomla-cms-bot added the Language Change This is for Translators label Jan 31, 2020
SharkyKZ and others added 2 commits January 31, 2020 08:13
Co-Authored-By: Quy <quy@fluxbb.org>
@SharkyKZ
Copy link
Copy Markdown
Contributor Author

@richard67 Should work now.

@richard67
Copy link
Copy Markdown
Member

I have tested this item ✅ successfully on 1c9e337


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27730.

@alikon
Copy link
Copy Markdown
Contributor

alikon commented Feb 2, 2020

I have tested this item ✅ successfully on 1c9e337


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27730.

@alikon
Copy link
Copy Markdown
Contributor

alikon commented Feb 2, 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27730.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Feb 2, 2020
@rdeutz rdeutz merged commit 87dec22 into joomla:staging Feb 3, 2020
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Feb 3, 2020
@zero-24 zero-24 added this to the Joomla! 3.9.16 milestone Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language Change This is for Translators

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants