Interface S3BucketService

All Known Implementing Classes:
S3BucketServiceImpl

public interface S3BucketService
Service for S3 bucket operations including file uploads.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(String filePath, String fileName, String extension)
    Deletes a file from the S3 bucket.
    void
    upload(String filePath, String fileName, String extension, String contentType, byte[] fileData)
    Uploads a file to the S3 bucket with specified metadata.
  • Method Details

    • upload

      void upload(String filePath, String fileName, String extension, String contentType, byte[] fileData)
      Uploads a file to the S3 bucket with specified metadata.
      Parameters:
      filePath - the storage path within the bucket
      fileName - the file name without extension
      extension - the file extension including the dot (e.g., ".png")
      contentType - the MIME type of the file
      fileData - the file content as byte array
    • delete

      void delete(String filePath, String fileName, String extension)
      Deletes a file from the S3 bucket.
      Parameters:
      filePath - the storage path within the bucket
      fileName - the file name without extension
      extension - the file extension including the dot (e.g., ".png")