Files
dify/web/utils
CodingOnStar f88afd72ab refactor(file-uploader): extract hook, components and add comprehensive tests
Refactor file-uploader component from 399 lines to 90 lines by extracting:
- useFileUpload hook for upload logic and drag-drop handling
- FileListItem component for individual file display
- UploadDropzone component for drop area UI
- Progress constants (PROGRESS_NOT_STARTED, PROGRESS_ERROR, PROGRESS_COMPLETE)

Add getFileExtension utility to web/utils/format.ts for shared use.

Test coverage: 102 tests with 100% line coverage for all file-uploader files.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 15:56:44 +08:00
..
2025-12-23 16:58:55 +08:00
2025-12-23 16:58:55 +08:00
2025-02-17 17:05:13 +08:00
2025-12-23 16:58:55 +08:00
2023-07-31 13:30:04 +08:00