How does nextcloud store big files?

Hello there.
I am planning using nextcloud as my home media server. Though I have a major concern: how nextcloud store big files physically on disk?

I asked cause it will be a PITA if I want to migrate/backup the files, especially big image/videos if they are stored as binary in mysql/mariadb database files.

Thanks.

files are stored in the filesystem. not in the db.

Thanks.That would work flawless for me.