Question:
I am uploading image file to S3 via the AWS java SDK,
Here is my code:
1 2 3 4 5 6 7 |
AmazonS3 s3 = new AmazonS3Client(basicAWSCredentials) PutObjectRequest putObj = new PutObjectRequest(bucketName, folderPath, getFile(fileName,fileContentToUpload)); putObj.setCannedAcl(CannedAccessControlList.PublicRead); s3.putObject(putObj); |
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)
Answer:
linux is case sensitive. windows is not.
try to an “ls” and note the case.
use the same case in your program.