Ryan Hendrickson created NIFI-10879:
---------------------------------------

             Summary: CompressContent - Improve "Update Filename" Help 
Description
                 Key: NIFI-10879
                 URL: https://issues.apache.org/jira/browse/NIFI-10879
             Project: Apache NiFi
          Issue Type: Improvement
            Reporter: Ryan Hendrickson


Update Filename: true/false

Current description: _If true, will remove the filename extension when 
decompressing data (only if the extension indicates the appropriate compression 
format) and add the appropriate extension when compressing data._

*Notes:*

When decompressing data, with Update Filename set to {_}*false*{_}, the NiFi 
Content Viewer will think decompressed JSON data is "text/plain".  (filename: 
giantfile.json.gz)

When decompressing data, with Update Filename set to {_}*true*{_}, the NiFi 
Content Viewer will correctly think decompressed JSON data is 
"application/json".  (filename: giantfile.json)

 

I've been working with NiFi for many years.. I've always ended up pairing a 
DecompressContent with a UpdateAttribute to set the mime.type.

 

Recommended description: _If true, will remove the filename extension when 
decompressing data (only if the extension indicates the appropriate compression 
format) and add the appropriate extension when compressing data. *The NiFi 
Content Viewer takes hints from the file extension for appropriate file 
viewing.  Set to true for best results with Content Viewer.*_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to