Interface FileService
- All Known Implementing Classes:
FileServiceImpl
public interface FileService
Service for file upload operations and metadata management.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(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
Uploads a file to storage and saves its metadata.- Parameters:
file- the multipart file to uploadfilePath- the storage path where the file should be uploaded- Returns:
- the saved file entity with metadata
-
delete
Deletes a file from storage and removes its metadata.- Parameters:
fileEntity- the file entity to delete
-