I dont know how is now. I think attachment dont stored in the DB. Every attachments have a folder itself. for avatars, for videos, for post attachments and images etc. and file extensions must itseld extension. for example if ı uload a rar file it stored in ftp .rar..