Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
com.buabook:amazon-s3-file-transfer
Advanced tools
Provides file upload and download wrapper classes for Amazon AWS SDK (c) 2017 Sport Trades Ltd
This library provides file upload and download wrapper classes for the AWS S3 SDK.
We wrap a TransferManager
with the following features:
Uploading can be performed in 3 ways, each allow the caller to do more configuration:
UploadContent
object - requires supplying the file content as a String along with a file name for the upload.InputStream
PutObjectRequest
By default the permissions of a newly uploaded file will be inherited from the parent folder or bucket. If you want to upload a file with different permissions, you can use the uploadSync
method directly, supplying your own PutObjectRequest
:
PutObjectRequest uploadRequest = s3FileUploader.getNewPutObjectRequest(s3Path, fileDataInputStream, fileDataLength);
// Allow everyone to read uploaded file
uploadRequest.setCannedAcl(CannedAccessControlList.PublicRead);
try {
s3FileUploader.uploadSync(uploadRequest);
} catch (AmazonClientException | IllegalArgumentException e) {
log.error("Failed to upload public file to Amazon. Error - " + e.getMessage(), e);
}
In order to either upload or download files from Amazon S3, an account must be created with the following permissions:
GetObject
PutObject
FAQs
Provides file upload and download wrapper classes for Amazon AWS SDK (c) 2017 Sport Trades Ltd
We found that com.buabook:amazon-s3-file-transfer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.