Package com.example.blogs.app.storage
Interface S3BucketService
- All Known Implementing Classes:
S3BucketServiceImpl
public interface S3BucketService
Service for S3 bucket operations including file uploads.
-
Method Summary
-
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 bucketfileName- the file name without extensionextension- the file extension including the dot (e.g., ".png")contentType- the MIME type of the filefileData- the file content as byte array
-
delete
Deletes a file from the S3 bucket.- Parameters:
filePath- the storage path within the bucketfileName- the file name without extensionextension- the file extension including the dot (e.g., ".png")
-