After RC version upgrade photo uploads don't work

I had an RC instance running 6.4.9 for a long time but now upgraded to 6.13.1. Users noticed that photo uploads in rooms and chats no longer worked. When I make a desktop snip and paste it into the RC website (from browser), RC previews it and allows to add a comment. When I insert it, the screen flashes white and nothing is added.

By that action, the error generated in RC’s docker logs:
.Error"},“errorType”:“Meteor.Error”},“status”:400,“responseTime”:26,“msg”:“Error: File is not valid [invalid-file] [ufs: cannot upload file]”}

I use GridFS to store the uploads. What can be done?

Server Setup Information

  • Version of Rocket.Chat Server: 6.13.1
  • Operating System: Ubuntu
  • Deployment Method: docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: yes
  • NodeJS Version: appropriate for the RC version
  • MongoDB Version: 6.0.19
  • Proxy: haproxy
  • Firewalls involved: none

Stop using GridFS immediately. It’s not designed for production and will eventually grind you to a halt.

There are two file migrator scripts around.

Check file upload types.

You have taken a big version jump and lots changed.

Read the changelogs properly & check github for file upload issues as there were some.

Thanks. I will look into these migrators.

Setting the file uploads to Amazon S3 solved the issue. I can assume that the uploads in GridFS are still accessible until I get to migrating them over?