Loading...
 

FileGalleryImportFileScript

Background

I needed a script to allow me to import some large setup applications into a tiki file gallery and I couldnt get access to the php.ini to increase the upload values and besides I had already FTPd the site onto the site.

How to Use

Simply FTP the file into your tiki/filegals directory, or whereever you point your file galleries to. This script will not work if your file gallery is set to store in the database.

With the script in your tiki folder. point your browse to:
http://<yourdomain>/tiki/tiki-file_import.php?galleryId=<id>&fname=<filename>

e.g.
http://tiki.org/tiki/tiki-file_import.php?galleryId=23&fname=test.zip

The script will rename the file into the secure md5 hash and then insert the links into the file gallery table. You just then need to edit the entry in the File Gallery in tiki to complete the Description and other fields.

Problems?

The script is here as is. I wrote it to do a quick job and it worked for me. If your having trouble with it, email me from Damians Page.

The Script

Attached to this wiki page.


Page last modified on Friday 20 September 2019 17:53:11 GMT-0000

Upcoming Events

No records to display

Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.