IAV-89/feat: implement files upload with optional folder path support
Overview
This MR implements the ability to upload files to specific folders within the file manager system. Users can now specify a folder path where files should be uploaded, or upload to the root directory if no path is provided.
Changes
- Added new
UPLOAD_WITH_FOLDERSendpoint inFileManagerController - Implemented
uploadFilesmethod inFileManagerServiceto handle folder-based uploads - Added support for optional
folderPathparameter - Added comprehensive Swagger documentation
Features
- Upload single or multiple files in one request
- Optional folder path parameter for targeted uploads
- Falls back to root directory when no folder path is specified
- Maintains existing file metadata tracking (usage type, uploader ID)
- Proper error handling and validation
Testing
-
Manual testing with folder path specified -
Manual testing without folder path (root upload) -
Multiple file upload scenarios -
Error cases (invalid paths, missing parameters)
Related Issues
Closes IAV-89