Skip to content

IAV-89/feat: implement files upload with optional folder path support

salaheddine zidani a demandé de fusionner feature/IAV-89 vers develop

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_FOLDERS endpoint in FileManagerController
  • Implemented uploadFiles method in FileManagerService to handle folder-based uploads
  • Added support for optional folderPath parameter
  • 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

Modification effectuée par salaheddine zidani

Rapports de requête de fusion