Loading...
 
Features / Usability

Features / Usability


Q re File Gallery: Store in directory: Path/permissions? Move files?

posts: 18

I just migrated from Tiki v3 on one server to Tiki 15.5 on a new server.

My Tiki v3 stored its file-gallery files in the database. I want to change now to "Store in directory."

Basic question about the "Path to the directory to store file gallery files" entry: What is this path relative to? Is it relative to my "tiki" directory (i.e., "public_html/tiki")? Or to "public_html"? Or to the directory that contains public_html?

I've read the advice about where the directory should be (either "a directory outside your document root, make sure your php script can read and write to that directory" or "a directory inside the document root and use .htaccess to prevent the user from listing the directory contents".)

But I have concerns if I ever need to migrate to a different server: how to I make sure the linkages between my wiki and the file-gallery files don't break? Does the file gallery store the links relative to the public_html/tiki installation?

Would it make sense to store the files in a new directory inside public_html/tiki ? (E.g., public_html/tiki/files ?)

I hope my questions aren't too incoherent. Obviously I don't really understand how this file gallery feature works!

posts: 18

My question can now be closed:

I determined that the path is relative to the Tiki installation.

I decided to create the directory at the root of the tiki directory.

In cPanel, Advanced > Indexing, I turned off indexing for the entire public_html directory so that no one could list the contents of the directory. Even though the title of each file is random, being able to index the directory someone could click on each one to download it.