Description
What problem does this feature solve?
When using the nz-upload component with nzAccept or nzFileType, files that do not match the specified formats are filtered out during drag-and-drop without triggering any event. This prevents developers from handling unsupported formats, as the logic does not reach nzBeforeUpload. An event should be triggered to allow for custom handling of these cases.
What does the proposed API look like?
The nz-upload component should emit an event when files with unsupported formats are dragged and dropped, and also when uploaded via the file dialog in the nzFileType case. This event would allow developers to implement custom logic, such as displaying an error message or logging the attempt. Alternatively, the logic could be adjusted to allow nzBeforeUpload to be called for unsupported files.