Loading...
 
Features / Usability

Features / Usability


Using file galleries with already uploaded files

posts: 24 Canada
If I have a bunch of images in various folders, can I just upload them to the server, then get tiki to recognize them in the file galleries? Or is uploading them through the file galleries just easier?
posts: 24 Canada
Jonny Bradley wrote:

Sounds like you need batch upload.

More here https://doc.tiki.org/Batch-Upload

HTH

That was quick, and looks like just what I need, thank you!
I'm having trouble getting it to work however. Here is what it is telling me to do:

If you decide to store files in a directory you must ensure that the user cannot access directly to the directory. You have two options to accomplish this:
Use a directory outside your document root, make sure your php script can read and write to that directory
Use a directory inside the document root and use .htaccess to prevent the user from listing the directory contents
To configure the directory path use UNIX like paths for example files/ or c:/foo/files or /www/files/

So I can't do the first one because I'm using a web host provider and my file manager only has access to my little corner of their server, so I don't know where it is. I tried putting my gallery folder in the base directory I have access to, but I can't seem to figure out how to tell the admin page where it is.
As for the second option, I just don't know anything about that (.htaccess). Would simply changing the folder access permissions work? Because I can do that easily.


posts: 742 United States

"So I can't do the first one because I'm using a web host provider and my file manager only has access to my little corner of their server"

Just to clarify, you cannot access folders above your public_html ?

posts: 24 Canada
John Morris wrote:

"So I can't do the first one because I'm using a web host provider and my file manager only has access to my little corner of their server"

Just to clarify, you cannot access folders above your public_html ?

I can access one level above that. My first one is named after my domain, and in that one is public_html, public_ftp, and a few others. So I can put my gallery outside of public_html, along side it at the same level, I just don't know what to call it.


posts: 24 Canada

Ok, in the absence of further information I've gone ahead and moved my picture gallery folder into the public_html. Tiki is telling me that it is a security risk, but the files and folders have the same permissions as anything else in there, so I don't know if that is true.
Aside from that, it took me a while to figure out how to get batch uploading to work, except that it is moving all of my picture files on my server into the root picture directory, out of their respective subdirectories. Probably a long shot, but is there any way to get it to stop doing that, and leave the files where they are? I've looked through all the options on both the Batch upload page and the file gallery settings page and found nothing that would seem to do that.

posts: 8511 Israel
Murdoc wrote:
except that it is moving all of my picture files on my server into the root picture directory, out of their respective subdirectories.


Hello Murdoc,

The batch directory is not a storage directory, it is the directory the batch feature use to perform its process. Files are integrated into Tiki and moved where they should be failing to do this will create much confusion. (files showing up every time you use the feature, duplication or reject upload, etc)

...Many feature of Tiki and protections (security) rely on the way and where the files are stored.