Interface FileService

All Known Implementing Classes:
FileServiceImpl

public interface FileService
Service for file upload operations and metadata management.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(FileEntity fileEntity)
    Deletes a file from storage and removes its metadata.
    upload(MultipartFile file, String filePath)
    Uploads a file to storage and saves its metadata.
  • Method Details

    • upload

      FileEntity upload(MultipartFile file, String filePath)
      Uploads a file to storage and saves its metadata.
      Parameters:
      file - the multipart file to upload
      filePath - the storage path where the file should be uploaded
      Returns:
      the saved file entity with metadata
    • delete

      void delete(FileEntity fileEntity)
      Deletes a file from storage and removes its metadata.
      Parameters:
      fileEntity - the file entity to delete