         do{
             let jsonData = try JSONSerialization.data(withJSONObject: message.dictPresent(), options: .prettyPrinted)
             self.contentTextView?.text = String(data: jsonData, encoding: .utf8)
+            if let files = message.files{
+                self.setUpFileContentsView(files: files)
+            }
         }catch{}
     }
     
     public func setUpFileContentsView(files: [FileObjectModel]){
 
         self.fileContentsView?.removeFromSuperview()
-        self.fileContentsView = UIScrollView(frame: CGRect(x: 10, y: 315, width: kScreenWidth-20, height: 120))
+        self.fileContentsView = UIScrollView(frame: CGRect(x: 10, y: 370, width: kScreenWidth-20, height: 120))
         self.fileContentsView?.backgroundColor = UIColor.init(red: 240/255, green: 240/255, blue: 240/255, alpha: 1.0)
   
         self.view.addSubview(self.fileContentsView!)

            finalStr = "\(finalStr!)\(membership.personDisplayName!)"
        }
        
        if let room = self.roomModel{
            self.sparkSDK?.messages?.post(roomId: room.id!,text: finalStr,mentions: mentions, files: files, uploadProgressHandler:{
                (file, progress) in

    override func viewDidLoad() {
        super.viewDidLoad()
        self.setupView()
        self.registerMessageCallBack()
    }
    
    // MARK: - SparkSDK: register Message receive CallBack
    private func registerMessageCallBack(){
        self.sparkSDK?.messages?.onMessage = {message in
            self.updateMessageAcitivty(message)
        }
