In case an upload goes wrong while dropping one or more files, error messages are generated. These should be improved:
- if several files cannot be uploaded for the same reason, the messages should be combined instead of generating one for each file
- the error message should be a hint, because it is not a system error
- the heading "Error" should be changed and directly express what the error is e.g. "Upload not possible".
Improvement
In GalleryControl as well as in FolderFileDropHandler all upload error messages are now summarized and displayed in one message. Each error message gets its own bullet point, so they are distinguishable from each other. \ files/folders that could not be uploaded due to the same error message are summarized again by displaying the error message followed by a list of the affected ! files/folders. In GalleryControl, this summary is only possible for errors caused by image duplicates. All other errors (e.g. unauthorized file format) are displayed separately, because they cannot be analyzed and summarized by the GalleryUploadListener.\ Additionally, the errors are now displayed as InfoMessage instead of ErrorMessage and have their own ResKey I18NConstants.INFO_UPLOAD_FAILED for the title of the message.
GalleryControl before: \ \ GalleryControl after: \\
WebFolder before:\\ \\ WebFolder after:\\
Test
Perform different uploads in a GalleryControl as well as in a WebFolder by drag & drop. This should also generate multiple errors, e.g. by uploading multiple !files/folders at the same time. The following errors are possible, among others:
- WebFolder: A folder with this name already exists.
- WebFolder: A file with this name already exists and needs to be locked (only occurs when uploading to a WebFolder with manual lock).
- GalleryControl: Invalid file format
- GalleryControl: An image with this name already exists