You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Ryan Hendrickson (Jira)" <ji...@apache.org> on 2022/11/25 20:33:00 UTC

[jira] [Created] (NIFI-10879) CompressContent - Improve "Update Filename" Help Description

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)