I am uploading image file to S3 via the AWS java SDK,
Here is my code:
AmazonS3 s3 = new AmazonS3Client(basicAWSCredentials)
PutObjectRequest putObj = new PutObjectRequest(bucketName, folderPath, getFile(fileName,fileContentToUpload));
on windows system its working fine, but on linux its giving following error:
Error Message: Unable to calculate MD5 hash: Chrysanthemum.jpg (No such file or directory)
linux is case sensitive. windows is not.
try to an “ls” and note the case.
use the same case in your program.