Github user vegaed commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1034#discussion_r80254681
  
    --- Diff: 
nifi-nar-bundles/nifi-aws-bundle/nifi-aws-processors/src/main/java/org/apache/nifi/processors/aws/s3/PutS3Object.java
 ---
    @@ -132,6 +132,19 @@
             .addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
             .build();
     
    +    public static final PropertyDescriptor CONTENT_TYPE = new 
PropertyDescriptor.Builder()
    +        .name("Content Type")
    +        .description("Sets the Content-Type HTTP header indicating the 
type of content stored in the associated " +
    +                "object. The value of this header is a standard MIME 
type.\n" +
    +                "AWS S3 Java client will attempt to determine the correct 
content type if one hasn't been set" +
    +                " yet. Users are responsible for ensuring a suitable 
content type is set when uploading streams. If " +
    +                "no content type is provided and cannot be determined by 
the filename, the default content type " +
    +                "\"application/octet-stream\" will be used.")
    --- End diff --
    
    Well if I do that then the default behavior will not kick in. This is an 
optional property. In our case the client couldn't figure out the type so we 
needed to tell it.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to