diff options
| author | diogo464 <[email protected]> | 2025-08-12 15:45:20 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-08-12 15:45:20 +0100 |
| commit | 50b468d6e90bb606474bccdbd732a068da91cc8f (patch) | |
| tree | 85ed91c9852762789d34a65dec36bc81ade90aee /frontend/lib | |
| parent | 4ef7eb34f9e67ec8c7ac0b6e02d33740eed233d1 (diff) | |
Implement working upload functionality
- Replace dummy upload functions with real API calls to /api/fs endpoint
- Add file validation (size limits, file count) with user-friendly error messages
- Support both root directory uploads and folder-specific uploads
- Add loading states and progress indication during uploads
- Implement auto-refresh of file tree after successful uploads
- Handle errors gracefully with toast notifications showing success/failure counts
- Update file size limit to 4GB and maintain 10 file upload limit
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Diffstat (limited to 'frontend/lib')
| -rw-r--r-- | frontend/lib/constants.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/lib/constants.ts b/frontend/lib/constants.ts index 8f74dd1..173e90d 100644 --- a/frontend/lib/constants.ts +++ b/frontend/lib/constants.ts | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | // Upload configuration constants | 1 | // Upload configuration constants |
| 2 | export const UPLOAD_MAX_FILE_SIZE = 100 * 1024 * 1024; // 100MB | 2 | export const UPLOAD_MAX_FILE_SIZE = 4096 * 1024 * 1024; // 100MB |
| 3 | export const UPLOAD_MAX_FILES = 10; // Maximum files per upload | 3 | export const UPLOAD_MAX_FILES = 10; // Maximum files per upload |
| 4 | export const UPLOAD_ALLOWED_TYPES = [ | 4 | export const UPLOAD_ALLOWED_TYPES = [ |
| 5 | // Documents | 5 | // Documents |
| @@ -36,4 +36,4 @@ export const UPLOAD_ALLOWED_TYPES = [ | |||
| 36 | 'text/html', | 36 | 'text/html', |
| 37 | 'text/css', | 37 | 'text/css', |
| 38 | 'application/xml' | 38 | 'application/xml' |
| 39 | ]; // Empty array means all types allowed \ No newline at end of file | 39 | ]; // Empty array means all types allowed |
