diff --git a/CHANGELOG.md b/CHANGELOG.md index a5eaa3f..09355f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,17 +4,31 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -## [1.1.0] - Unreleased +## [2.0.0] - Unreleased ### Added - New methods for building the paths to the thumbnail easier: `ThumbnailResourceInterface`: `getPathToThumbnailFile`, `getUrlToThumbnailFile` - New response strategy `ResponseInterface::errorResponseAsJson` +- New module setting added to handle allowed file extensions `ModuleSettingsInterface::getAllowedExtensions` +- Validations for File: Cannot start from dot, Cannot be empty string. Extensions checked to be from the allowed list. +- Validations for Directory: Cannot start from dot, cannot be empty string. +- Validations for Uploaded file: All regular file validations + Checking if file was successfully uploaded at all. +- New method to get uploaded file data `UIRequestInterface::getUploadedFile`, also `UploadedFileInterface` data type. + +### Changed +- Improved the element layout to show errors with better visibility. +- Improved the way errors handled from controllers to user interface during upload, addfolder and rename actions. +- `ModuleSettingsInterface` moved to `Settings` domain/namespace. +- `NamingServiceInterface::sanitizeFilename` method input parameter renamed to `$fileName` ### Fixed - Use correct interface for shop id calculation - Reformat js and styles for better readability - The thumbnail generation process doesn't explode anymore if something goes wrong, like - the origin is missing [#0006785](https://bugs.oxid-esales.com/view.php?id=6785) +### Removed +- `validateFileName` method in NamingServiceInterface. This part extracted to Validation domain, and now expanded to handle various cases. + ## [1.0.0] - 2024-03-12 Module extracted from wysiwyg module, and used by it now