BO - Employees page - an exception is displayed when we try to add an invalid avatar #28985
Closed
2 tasks done
Labels
1.7.8.6
Affects versions
Advanced parameters
Component: Which BO section is concerned
BO
Category: Back Office
Bug
Type: Bug
Employees
Label: Which BO under menu is concerned
Fixed
Resolution: issue closed because fixed
Good first issue
Community: beginner-friendly issues
Image
Label: Which BO under menu is concerned
PR available
Solution: issue is being addressed
Regression
Type: regression
Team
Label: Which BO under menu is concerned
Trivial
Severity: trivial bug > https://build.prestashop.com/news/severity-classification
Verified
The issue has been reproduced
Prerequisites
Describe the bug and add screenshots
Related to #28253, #28484
In the BO > Team > Employees page, an exception is displayed when we add an invalid avatar (SVG, mp4,...)
Expected behavior
When user hits "save" an error should be displayed to tell user that only some image files (list to be defined) are accepted as avatar. Trying to submit files such as SVG or MP4 should trigger a form invalidation error.
Error message should be something
Steps to reproduce
PrestaShop version(s) where the bug happened
1.7.8.6, 8.0.x
PHP version(s) where the bug happened
7.2
If your bug is related to a module, specify its name and its version
No response
The text was updated successfully, but these errors were encountered: