If an upload fails when one or more files are dropped, error messages are generated. These messages should be improved:
- If multiple files cannot be uploaded for the same reason, the messages should be combined rather than generating a separate one for each file
- The error message should serve as a guide, since this is not a system error
- The heading “Error” should be changed to directly state what the error is, e.g., “Upload not possible”
Improvement
In both GalleryControl and FolderFileDropHandler, all upload error messages are now consolidated and displayed in a single message. Each error message is given its own bullet point so that they can be distinguished from one another. \\ !Files/folders that could not be uploaded due to the same error message are further grouped together by displaying the error message followed by a list of the affected !files/folders. In GalleryControl, this consolidation is only possible for errors caused by duplicate images. All other errors (e.g., invalid file format) are displayed separately, as they cannot be analyzed and consolidated due to the structure of the GalleryUploadListener.\\ In addition, the errors are now displayed as InfoMessages instead of ErrorMessages and have their own ResKey: I18NConstants.INFO_UPLOAD_FAILED for the message title.
GalleryControl before: \\ \\ GalleryControl after: \\
WebFolder before:\\ \\ WebFolder after:\\
Test
Perform various drag-and-drop uploads in both a GalleryControl and a WebFolder. This should also generate multiple errors, e.g., by uploading multiple files/folders simultaneously. The following errors, among others, are possible:
- WebFolder: A folder with this name already exists.
- WebFolder: A file with this name already exists and must be locked (occurs only when uploading to a WebFolder with manual locking)
- GalleryControl: Invalid file format
- GalleryControl: An image with this name already exists