(most easy with Linux, when you use "connect to server" with the file-manager, but should be simple enough with Windows aswell, once you setup a FTP-directory on the desktop, or you might use a FTP client)
Can handle large files
The Batch Upload imports the files directly from the local file system and is thus not affected by regular upload limits. As a result large files can be imported into the File Galleries. Use "Store in directory" as File Gallery storage if you are going to import large files.
Setup Tiki File Gallery to store files in the Directory, and not in the database.
do not use /files aka ../files in the Tiki root directory, but setup a directory(folder)outside the Tiki root, e.g. ../../files one level above, and create one directory(folder) ../../files/batchupload.
Mind the appropriate permission chmod 755 or 777 (depending on the
I found (Uncle Geo_) this to be a bit confusing. Here's what I did that worked: At my hosting service I located the top level folder that my tiki was installed into (i.e., where the browser goes looking for the index.php). Inside it I created a folder called "FileUploads". In the File Gallery config in Tiki I ignored all the stuff above about ../../, etc and just entered "FileUploads/" for the Batch Uploading Path:. It woiks!
(first tab, scroll about a bit more than half way down)
Batch uploading http://doc.tiki.org/File Gallery Config
http://doc.tiki.org/File Gallery Config
|Path:||../../files/batchupload||http://doc.tiki.org/File Gallery config http://doc.tiki.org/File Gallery config|
If you enable Directory Batch Loading, you need to setup a
web-readable directory (outside of your web space is better).
Then setup a way to upload files in that dir, either by scp,
ftp, or other protocols The server must be able to read the
directory. The directory can be outside the web space.
FTP-upload any file to the directory ../../files/batchupload
http://example.com/tiki-batch_upload_files.php?galleryId=1 (a menu-item of the main application menu) or http://example.com/tiki-list_file_gallery.php and click on the button "directorybatch"
Tick the appropriate files, choose the file-gallery to store the file into and apply
If you do not want to give users the FTP-login for the batchfolder just create FTP-subfolders:
../../files/batchupload/user1 ../../files/batchupload/user2 etc.
Then you or anybody who has login to the main directory can simply FTP-move the FTP-uploaded files from the users-subfolder into the batchfolder and then batch-upload them from inside Tiki
# file according to sub-directory name and create missing galleries php console.php files:batchupload 1 --subdirToSubgal --createSubgals # file according using sub-directory with integer name into gallery with corresponding ID php console.php files:batchupload 1 --subdirToSubgal --subdirIntegerToSubgalId # set file user etc so apache can manage the files afterwards php console.php files:batchupload 1 --fileUser apache --fileGroup allusers --fileMode 0775 # upload files from a different directory php console.php files:batchupload 1 --filesPath /var/www/other/uploads # more help php console.php help files:batchupload
Alias names of this page:
batchupload | batchfileupload | batch file upload