-
Notifications
You must be signed in to change notification settings - Fork 58
Set content type for AWS S3 buckets for the s3-upload goal #55
base: master
Are you sure you want to change the base?
Conversation
…opied over from the Azure wagon plugin package
…ageCore module for reuse across providers
…by not sending them as InputStreams.
Initially, I was doing as the PR describes. However, today I found out that the AWS S3 API can auto-determine the content-type if the upload is made by passing a reference to a File instead of an InputStream. The current version of the PR takes advantage of that. |
Hi @Pitxyoki |
Hi, |
Hi, |
Hello! I am having problems to upload some generated docs as they are uploaded as octet-stream so index.html is downloaded instead of rendered. Will this be released? Thanks!! |
This adds the same functionality that was added by PR #27 to the AWS S3 wagon plugin, only for the
S3UploadMojo
class, corresponding to the s3-upload goal.Note that the
ContentTypeResolver
class was moved to the cloud-storage-core module so that the code could be reused across the two plugins (Azure and S3).