Using file galleries with already uploaded files Posted by Murdoc 20 Nov 2021 16:53 GMT-0000 posts: 24 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?
Posted by Jonny Bradley 20 Nov 2021 17:19 GMT-0000 posts: 126892 Sounds like you need batch upload. More here https://doc.tiki.org/Batch-Upload HTH
Posted by Murdoc 20 Nov 2021 18:02 GMT-0000 posts: 24 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.
Posted by John Morris 21 Nov 2021 01:23 GMT-0000 posts: 758 "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 ?
Posted by Murdoc 21 Nov 2021 07:16 GMT-0000 posts: 24 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.
Posted by Murdoc 27 Nov 2021 23:19 GMT-0000 posts: 24 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.
Posted by Bernard Sfez / Tiki Specialist 28 Nov 2021 06:06 GMT-0000 posts: 8654 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. Bsfez | Bernard Sfez | Tiki Express Tutorials | me at bsfez.com | https://www.bsfez.com
Posted by Bernard Sfez / Tiki Specialist 28 Nov 2021 06:07 GMT-0000 posts: 8654 Murdoc wrote: Aside from that, it took me a while to figure out how to get batch uploading to work Please help others and improve the documentation. 💪 Bsfez | Bernard Sfez | Tiki Express Tutorials | me at bsfez.com | https://www.bsfez.com