Strange/encrypted filenames in file galleries when storing outside the database
I am using tikiwiki 2.2 and have the following problem.
I am storing files in file galleries outside the databasem, and created a separate folder on my server to do this.
However, if I upload a file, the file name gets in some way encrypted, scrambled. For example, if I upload a pdf file, the filename (as seen in a linux directory listing) becomes 08632c42774e7e583fe6748e4cb8741b.
Similarly, if I use "directory batch upload" - I only get a list of such scrambled names. I can upload and use pdf's this way, but cannot upload jpg's.
The filenames are shown correctly inside Tikiwiki.
Any suggestions how to maintain the original filenames, and how to use jpg's in a file gallery (if these problems are related at least?)