Use AttributesToJSON and change destination in properties to flowfile-content ,
@Shashwat Gauro To put attributes to a file i am using AttributesToJson processor and in the properties change Destination to "flowfile-content". Attributes will be moved as contents in flowfile. then you can use putfile.
... View more