PutGridFS 2025.10.9.21

Bundle

org.apache.nifi | nifi-mongodb-nar

Description

Writes a file to a GridFS bucket.

Tags

file, gridfs, mongo, put, store

Input Requirement

REQUIRED

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
gridfs-bucket-nameThe GridFS bucket where the files will be stored. If left blank, it will use the default value ‘fs’ that the MongoDB client driver uses.
gridfs-client-serviceThe MongoDB client service to use for database connections.
gridfs-database-nameThe name of the database to use
gridfs-file-nameThe name of the file in the bucket that is the target of this processor. GridFS file names do not include path information because GridFS does not sort files into folders within a bucket.
putgridfs-chunk-sizeControls the maximum size of each chunk of a file uploaded into GridFS.
putgridfs-enforce-uniquenessWhen enabled, this option will ensure that uniqueness is enforced on the bucket. It will do so by creating a MongoDB index that matches your selection. It should ideally be configured once when the bucket is created for the first time because it could take a long time to build on an existing bucket wit a lot of data.
putgridfs-hash-attributeIf uniquness enforcement is enabled and the file hash is part of the constraint, this must be set to an attribute that exists on all incoming flowfiles.
putgridfs-properties-prefixAttributes that have this prefix will be added to the file stored in GridFS as metadata.

Relationships

NameDescription
duplicateFlowfiles that fail the duplicate check are sent to this relationship.
failureWhen there is a failure processing the flowfile, it goes to this relationship.
successWhen the operation succeeds, the flowfile is sent to this relationship.